Forum: JRuby include_class fails in Jruby 1.1.6 RC1

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.
C7aed300a54b96bf2372966ff8aeeeea?d=identicon&s=25 drrs (Guest)
on 2008-12-13 00:24
(Received via mailing list)
I see this issue in Jruby 1.1.6 RC1...can anyone please clarify me why
something like this:

my_directory='<some directory>\build\WEB-INF\classes'
Dir.chdir(my_directory)
system('C:\jdk1.5.0\bin\jar cf myFile.jar .')
require 'myFile.jar'

Say com.mypackage.Hello is now part of the myFile.jar

Now I do something like:
include_class 'com.mypackage.Hello'

Worked in 1.1.4 and not in 1.1.5 and 1.1.6RC1?

Thanks in advance.

--
View this message in context:
http://www.nabble.com/include_class-fails-in-Jruby...
Sent from the JRuby - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email
C7aed300a54b96bf2372966ff8aeeeea?d=identicon&s=25 drrs (Guest)
on 2008-12-13 07:03
(Received via mailing list)
Found the issue.

In require 'myFile.jar'
I had to use:
require '<fullpath>\myFile.jar'
though myFile.jar is in the same directory as per
Dir.chdir(my_directory) still had to provide full path.

Solved!


drrs wrote:
>
> Now I do something like:
> include_class 'com.mypackage.Hello'
>
> Worked in 1.1.4 and not in 1.1.5 and 1.1.6RC1?
>
> Thanks in advance.
>
>

--
View this message in context:
http://www.nabble.com/include_class-fails-in-Jruby...
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.