I cannot find the current syntax for using java classes in Jruby. This link text :
include Java include 'java' require 'java'
As valid parameters, although he says that the last option is up to 1.0 and does not work.
Jruby Wiki , however, says to use require 'java'
And to include the classes that I saw
MyClass = Java::some.package.MyClass include_class Java::some.package.MyClass include_class 'some.package.MyClass' java_import Java::some.package.MyClass
Is there one preferred method?
I am currently receiving the message "override X", since I have several java classes that match my ruby ββclass. What is the best method for storing the java namespace, so I do not get them, and are there any problems (other than the obvious Java class preceding the ruby ββclass) with this override if I never use the two ruby ββ/ java classes in same file?
source share