Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

warbler compiled jar doesn't seem to generate class files

Đang mở
#97 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java, ruby
Lĩnh vực
build-system

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).
Ngôn ngữ chính
Ruby
Star
901
Fork
206
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của jruby/warbler

Tất cả issue của jruby/warbler

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.