You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got this ruby file (foo/bar.rb) and want to create a corresponding .java file:
moduleFooclassBardefrunputs"hello world"endendend
Expected Behavior
jrubyc creates a .java file:
Actual Behavior
jrubyc throws an error:
$ jrubyc --javac foo/bar.rb
RuntimeError: No classes found in target script: foo/bar.rb
block in compile_files_with_options at /Users/heiko/.rbenv/versions/jruby-9.1.6.0/lib/ruby/stdlib/jruby/compiler.rb:142
block in compile_files_with_options at /Users/heiko/.rbenv/versions/jruby-9.1.6.0/lib/ruby/stdlib/jruby/compiler.rb:297
compile_files_with_options at /Users/heiko/.rbenv/versions/jruby-9.1.6.0/lib/ruby/stdlib/jruby/compiler.rb:281
compile_argv at /Users/heiko/.rbenv/versions/jruby-9.1.6.0/lib/ruby/stdlib/jruby/compiler.rb:94
<main> at /Users/heiko/.rbenv/versions/jruby-9.1.6.0/bin/jrubyc:5
Environment
$ ruby -v
jruby 9.1.6.0 (2.3.1) 2016-11-09 0150a76 Java HotSpot(TM) 64-Bit Server VM 25.121-b13 on 1.8.0_121-b13 +jit [darwin-x86_64]
$ echo$JRUBY_OPTS
$ uname -a
Darwin Heikos-MBPtina.XXXX 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64
The text was updated successfully, but these errors were encountered:
$ jrubyc --javac foo/bar.rb
RuntimeError: No classes found in target script: foo/bar.rb
block in compile_files_with_options at /Users/olle/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/jruby/compiler.rb:142
block in compile_files_with_options at /Users/olle/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/jruby/compiler.rb:297
each at org/jruby/RubyArray.java:1734
compile_files_with_options at /Users/olle/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/jruby/compiler.rb:281
compile_argv at /Users/olle/.rvm/rubies/jruby-9.1.8.0/lib/ruby/stdlib/jruby/compiler.rb:94
<main> at /Users/olle/.rvm/rubies/jruby-9.1.8.0/bin/jrubyc:5
$ ruby -v
jruby 9.1.8.0 (2.3.1) 2017-03-06 90fc7ab Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [darwin-x86_64]
$ uname -a
Darwin Olles-MacBook-Pro.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 x86_64
I've got this ruby file (
foo/bar.rb
) and want to create a corresponding.java
file:Expected Behavior
jrubyc
creates a.java
file:Actual Behavior
jrubyc
throws an error:Environment
The text was updated successfully, but these errors were encountered: