Quote:> While creating JVM, I am getting the following error:
> Can't find class java.lang.NoClassDefFoundError. (Wrong class path?)
I assume you mean you are using the Invocation API's to create
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.
Quote:> 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:
> /usr/java1.2/jre/lib/sparc/libjava.so
Based on the error, I guess the classpath is not what it should
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.
Quote:> All these did not solve the problem at all.
> How do I proceed ? So far, I spent 15 hours without arriving at any
> solution.
Invocation API problems can be frustrating, the options are
obscure and tend not to be well documented. Trial and error
and experience help alot here.
--Joe