On Thu, 17 Sep 1998 14:03:25 +0800, Ong Choon Seng wrote:
>Hi,
>
>I have install the rpm package (jdk-sbb-1.1.6-4a.glibc.i386.rpm) from redhat's ftp on
>my rh5.1 system but have problem running classes.
>
>I am very now to this environment so any help would be greatly appreciated.
>
>I know that you have to setup the classpath option but how do I do that?
>
>I was trying to run the HelloWorld class with :-
> java -classpath \home\java HelloWorld
Well, unless the JAVA classes are in \home\java this will most likely fail
as you have listed:
>but encounter the following error :-
> Unable to initialize threads : cannot find class java/lang/Thread
Most likely you should not need to set up CLASSPATH using the -classpath
option. The problem with that option (or feature) is that it *replaces*
the classpath environment variable. Not only that, the JAVA Wrapper does
not automatically add the Java system classes to the classpath in that
case. (It does add them to the classpath environment variable)
BTW - I think that Sun has caused the largest harm to Java due to the
complexities and irregularities of the setting of CLASSPATH. Yes, there
is lots of power there, but there is no excuse for the Java startup to
not always add on the location of the system classes. If someone is
replacing them, not search would get that far but most users do need
them so having to put them into the classpath has become a major pain
and hassle for the users of Java.
Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz