I moved over to Sun's Java2 on Windows.  I verified that the -classpath switch is relative to where I run java from.  I was wondering if it might be relative to where java lives(it wasn't).  In windows I can run it like:  java -classpath /thisdir testprog
or I can be somewhere else and run it thus:  java -classpath ../thisdir testprog.
 
The error I get with blackdown is:  Unable to initilize threads:  cannot find class java/lang/Thread
 
I even tried adding    jdk117_v3/lib/java/lang  to my path.  Still nogo.
-----Original Message-----
From: Aras <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Sunday, October 24, 1999 9:01 PM
Subject: newbie java -classpath not working as expected

1.  I've installed jdk117_v3. 
2.  Created a test file test.java, where the class is testprog
3.  Ran javac -d /myclasses test.java  (it did create the testprog.class in /myclasses)
4.  I can run java testprog
 
What doesn't seem to run is if I am in a different dir and I try:     java -classpath /myclasses testprog
 
I get the usual "Can't find /java/Thread" or something like that.
 
I think my PATH var is OK.
 
I wonder if I need to install into /usr/local,  currently I have it unser a home dir.

Reply via email to