A
Ahmed Abdelsalam
I've created two java classes that I'm trying to call from ruby file. I
put the java classes with the ruby file in the same directory, and tried
to run.
I accessed java classes from the ruby file using full class path like:
Java::com.ch.Cells
but I got the following error:
org.jruby.exceptions.RaiseException: cannot load Java class
com.ch.Cells
at
com.sun.script.jruby.JRubyScriptEngine.evalNode(JRubyScriptEngine.java:456)
at
com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:186)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
Caused by: org.jruby.exceptions.RaiseException: cannot load Java class
com.ch.Cells
at (unknown).(unknown)(/builtin/java/ast.rb:49)
at
(unknown).get_proxy_or_package_under_package(/builtin/javasupport/java.rb:51)
at #<Class:01x965654>.method_missing(<unknown>:1)
at (unknown).(unknown)1)
Any help !!!
put the java classes with the ruby file in the same directory, and tried
to run.
I accessed java classes from the ruby file using full class path like:
Java::com.ch.Cells
but I got the following error:
org.jruby.exceptions.RaiseException: cannot load Java class
com.ch.Cells
at
com.sun.script.jruby.JRubyScriptEngine.evalNode(JRubyScriptEngine.java:456)
at
com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:186)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
Caused by: org.jruby.exceptions.RaiseException: cannot load Java class
com.ch.Cells
at (unknown).(unknown)(/builtin/java/ast.rb:49)
at
(unknown).get_proxy_or_package_under_package(/builtin/javasupport/java.rb:51)
at #<Class:01x965654>.method_missing(<unknown>:1)
at (unknown).(unknown)1)
Any help !!!