Include_class fails in Jruby 1.1.6 RC1


#1

I see this issue in Jruby 1.1.6 RC1…can anyone please clarify me why
something like this:

my_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-1.1.6-RC1-tp20985363p20985363.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

Found the issue.

In require ‘myFile.jar’
I had to use:
require ‘\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-1.1.6-RC1-tp20985363p20987765.html
Sent from the JRuby - User mailing list archive at Nabble.com.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email