I tried everything, even I put the java files in the same directory of the ruby file, also nothing happens.

Can you tell me how to put java file in ruby class path. I'm using eclipse IDE.

Thanks,...

Ahmed

Charles Oliver Nutter wrote:
Ahmed Abdelsalam wrote:
Hi,...

I have a problem with running a ruby script from inside eclipse plugin. Simply, I created a ruby a script that calls some java functions from class inside eclipse plugin. the problem is that the script cannot load such java plugin, it gives me the following error:

Here is the ruby code:
class Cells < Java::cz.cesnet.meta.jruby.Cells
  def initialize
    @cells = {'a1' => 'Hello a1'};      end
end

The error:
javax.script.ScriptException: org.jruby.exceptions.RaiseException: cannot load Java class cz.cesnet.meta.jruby.Cells

For whatever reason the class you want to load is not available. You may need to require the jar file for it or put it in a higher classpath. Where is that class located? How are you making it possible for the plugin to find it?

- Charlie

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to