On Wed, 14 Apr 1999 11:59:48 +0200, Robb Shecter wrote:

>Hi,
>
>I know this is an old one, but I was wondering about the state of the
>"-classpath" annoyance that is there in Java/Linux 117a, and possibly in
>other Java versions, too.
>
>I mean the problem where the command line option has different behavior
>than the environment variable - namely, with the command line option you
>must specify the core java libraries, too.
>
>I saw something about this a while ago, but don't remember - anybody
>know what the state of this is?  Is it acknowledged as a generic Java
>bug?  Is it only a Linux problem?
>
>(I'm just editing for the nth time a startup script to avoid the
>annoying "cannot find class java/lang/Thread" error.)

I have taken to never use the "-classpath" argument to Java specifically
because of this.  I normally have the wrapper script just adjust CLASSPATH
environment variable to make sure it works.

Now, in the JRE, the "-cp" does not need the core java classes...

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



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to