Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

warbler compiled jar doesn't seem to generate class files

Aperta
#97 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java, ruby
Ambito
build-system

Direzione di ricerca

Start with the warbler compiled jar command and reproduce it using the lib/cews-lib.rb example from the issue, then list the jar's contents to check for a class file for JavaIntegrationTest. The issue gives no warbler file or test to start from, and the thread never settles whether warbler is the right tool. Done would mean the compiled jar contains a usable class with sayHello, or a documented answer that warbler cannot do this.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm trying to use warbler to create a jar file that I can use inside an existing Java application. I'm not sure if I can use warbler for this, but here's what I'm doing: I created a dummy Ruby file in bin/, and created a simple Ruby file in lib/ called cews-lib.rb.

require 'java'
java_require 'cews-lib'

class JavaIntegrationTest
  java_signature 'void sayHello()'
  def sayHello
    puts 'Hello, World!'
  end
end

When I execute warbler compiled jar, the JAR file that I inspect doesn't have a class file for the JavaIntegratIonTest class that I can call from Java. When I use jrubyc --javac cews-lib.rb, the generated Java file has a usable sayHello method. Not sure if warbler is the right tool, if not, does anyone know what is? Thank you.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1446652-warbler-compiled-jar-doesn-t-seem-to-generate-class-files?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136961&utm_medium=issues&utm_source=github).
Lingua principale
Ruby
Stelle
901
Fork
206
Merge medio
1g 10h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jruby/warbler

Tutte le issue di jruby/warbler

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.