java_package allows the creation of a java file, but then you can't run it
because java_package isn't defined
-------------------------------------------------------------------------------------------------------------
Key: JRUBY-6084
URL: https://jira.codehaus.org/browse/JRUBY-6084
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.6.4
Reporter: James Moore
Attachments: sampleclass.tar
Use java_package in ruby:
james@James-Moores-iMac:/tmp/prob$ cat r.rb
java_package 'com.example'
class SampleClass; end
Then create a SampleClass object from Java and run the result. Result is
undefined method `java_package' for main:Object
james@James-Moores-iMac:/tmp/prob$ java -cp
/Library/Frameworks/JRuby.framework/Versions/Current/lib/jruby.jar:.
com.example.Harness
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.example.Harness.main(Harness.java:5)
Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) undefined
method `java_package' for main:Object
james@James-Moores-iMac:/tmp/prob$
Complete small project uploaded in sampleclass.tar
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email