On 10 Jul 2003 08:48:15 -0700, [email]qazmlp1209rediffmail.com[/email] (qazmlp) wrote:
I assume you mean you are using the Invocation API's to create> While creating JVM, I am getting the following error:
> Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)
a JVM in your application? Which version for InitArgs are you
using, 1.1 or 1.2 style? If 1.1, what is the the classpath
field set to? If you are using 1.2, which property are you
using to set classpath, -Xbootclasspath? Will need to see the
args setup and CreateJavaVM() call to really help here.
Based on the error, I guess the classpath is not what it should> I gave all the required Jar files in the CLASSPATH. Also, I set the
> LD_LIBRARY_PATH such that, it can pick up libjvm.so available at:
be, inspite of what you say ;-). Let's see the code.
The LD_LIBRARY_PATH is essential, it won't work properly without
it. But that's not your problem, the JVM is trying to start so
you are past this issue (at least temporarily), but it can't find
some required classes, which means your classpath is bogus somehow.
Invocation API problems can be frustrating, the options are> All these did not solve the problem at all.
> How do I proceed ? So far, I spent 15 hours without arriving at any
obscure and tend not to be well doented. Trial and error
and experience help alot here.