RE: [jruby-dev] Working with Java classes in JRuby

2007-08-23 Thread Peter K Chan
al Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 6:33 PM To: [email protected] Subject: Re: [jruby-dev] Working with Java classes in JRuby Much appreciate the follow up, Peter. I'm beginning to penetrate to the second point. First, the invocati

Re: [jruby-dev] Working with Java classes in JRuby

2007-08-23 Thread Eric Armstrong
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 7:35 PM To: [email protected] Subject: Re: [jruby-dev] Working with Java classes in JRuby Hi, Peter. Your comments match my expectation, based on what I had read. But what I found was that: a) Putting the jar in the CLASSP

RE: [jruby-dev] Working with Java classes in JRuby

2007-08-22 Thread Peter K Chan
long syntax, as the second case above. Peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 7:35 PM To: [email protected] Subject: Re: [jruby-dev] Working with Java classes in JRuby Hi, Peter. Your comments match my expectation, based

Re: [jruby-dev] Working with Java classes in JRuby

2007-08-22 Thread Eric Armstrong
Hi, Peter. Your comments match my expectation, based on what I had read. But what I found was that: a) Putting the jar in the CLASSPATH was not sufficient. An include_class statement failed with "class not found" until the JAR was also required in the code. (For JVM core classes, it

RE: [jruby-dev] Working with Java classes in JRuby

2007-08-22 Thread Peter K Chan
Eric, I think most of your steps are correct. I suspect that if you are including the JAR on the JVM CLASSPATH, you would not need to require the JAR individually (JRuby can resolve the class using normal Java classloading). 3 and 4 are substitutes for each other. Use one or the ot