On Wed, Feb 19, 2003 at 10:54:10PM +0800, wujf wrote:
| 
| Unable to initialize threads: cannot find class java/lang/Thread
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| Could not create Java VM
| 

Here's your problem.  You said you were using jdk 1.1.x, so you need
to include classes.zip in the CLASSPATH.  The problem is the VM (java)
can't find the standard library stuff.  If you use a newer jdk (1.2.x
or 1.3.x) it will find the file automagically (it is called rt.jar in
the newer releases).

classes.zip should be located somewhere like
/usr/share/java/lib/classes.zip.  I haven't installed a jdk on Linux
yet as I have a Win2k box at work.  On it I have jdk1.1.8, jdk1.2.2,
and jdk1.3.  I installed them in d:\jdk1.1.8, etc.  I put
"d:\jdk1.1.8\lib\classes.zip" in the CLASSPATH environment variable,
or on the commandline as   

java -classpath "d:\jdk1.1.8\lib\classes.zip"


HTH,
-D

Reply via email to