Forum: JRuby JRuby-loaded JAR cannot access included JAR

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
K-risma (Guest)
on 2009-01-29 02:38
(Received via mailing list)
Hello,

I've got a serious problem with JRuby.

There is a program called SISSy in a sissy.jar that needs access to
Java's
rt.jar. On a Mac, rt.jar is split up into classes.jar and ui.jar. These
jar's are already referenced and included in sissy.jar. I can run
sissy.jar
with no problems from the command-line.

require "lib/sissy/classes.jar"
require "lib/sissy/ui.jar"
require "lib/sissy/sissy.jar"

import "de.fzi.sissy.Main"
Main.main main_args.to_java(:String)

It doesn't work, because this main-class says:
"Error: Problem with system setup: Cannot locate system classes"
This means, it cannot access ui.jar and classes.jar.

Is there are special jruby-trick for embedded/inner jars?
--
View this message in context:
http://www.nabble.com/JRuby-loaded-JAR-cannot-acce...
Sent from the JRuby - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.