Posted By:
Rich_Carpenter
Posted On:
Wednesday, May 29, 2002 04:15 AM
Boaz,
You're probably using a 1.1.x version of the jdk (perhaps 1.1.8 which ships with many AIX versions).
This version of the JDK needs to be told where to find the 'classes.zip' file if the -classpath
command line option is used.
A simple 'Hello' type program can illustrate this. There is a class, Hello.class, in directory
/dps/rcarpent/javastuff. The java classes.zip file is located in /usr/jdk_base/lib. Consider
these actual results, noting how the inclusion of classes.zip in the -classpath option changes
the results:
/dps/rcarpent/javastuff>java -classpath /dps/rcarpent/javastuff Hello
Unable to initialize threads: cannot find class java/lang/Thread
/dps/rcarpent/javastuff>java -classpath /dps/rcarpent/javastuff:/usr/jdk_base/lib/classes.zip Hello
Hello, this is from DVLP!!
The same error message is shown in the first example. Locate the classes.zip file on your
system and specifically include it in the -classpath option and see if that resolves
the problem you've encountered.
Rich