Chuck Remes wrote: > On Apr 23, 2009, at 5:22 AM, Ahmed Abdelsalam wrote: > >> org.jruby.exceptions.RaiseException: cannot load Java class >> 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) > > You need to show us the code too. Show the Java and show the ruby. > > cr Here is the ruby code: class Cells < Java::cz.cesnet.meta.jruby.Cells def initialize @cells = {'a1' => 'Hello a1'}; end end here is the java code: ScriptEngineManager m = new ScriptEngineManager(); // Override due to classpath troubles with OSGi ? m.registerEngineName("jruby", new com.sun.script.jruby.JRubyScriptEngineFactory()); //get jruby engine ScriptEngine jruby = m.getEngineByName("jruby"); //process a ruby file jruby.eval(new BufferedReader(new FileReader("... path to ruby file"))); -- Posted via http://www.ruby-forum.com/.