use 'java -classpath $CLASSPATH:. someClass'
In Java 2 you don't need to have CLASSPATH set, and the '-classpath'
switch appends the parameter to the system classpath (default
<java>/lib:<java>/jre/lib/ext). If you jar your application classes, you
can add them to the system classpath by dropping the jar into
<java>/jre/lib/ext.
--Jeff
Paul Mclachlan wrote:
>
> --- "Herbel, Rick" <[EMAIL PROTECTED]> wrote:
> > + exec /usr/local/java/bin/i686/green_threads/java -verbose
> > -verbosegc
> > -cs -verify -classpath ./ HelloWorld.class
> > Unable to initialize threads: cannot find class
> > java/lang/Thread
>
> It's this last line that's having the problem. -classpath
> overrides your CLASSPATH environment variable [I'm pretty sure,
> anyway. I read something about this changing in 1.2, or
> something like that? anyone know?], so all the work it did
> setting that up is wasted. Personally, I always include
> /usr/local/java/lib/classes.zip in my CLASSPATH so it never does
> any of this translation for me
>
> I suspect if you do this you'll be better off. The cannot find
> java/lang/Thread just means that the classes.zip isn't in the
> path or isn't valid (or you don't have permission to it, or
> wierd stuff like that)
>
--
Jeff Galyan
http://www.anamorphic.com
http://www.sun.com
jeffrey dot galyan at sun dot com
talisman at anamorphic dot com
Sun Certified Java(TM) Programmer
======================================================================
Linus Torvalds on Microsoft and software development:
"... if it's a hobby for me and a job for you, why are you doing such a
shoddy job of it?"
The views expressed herein do not necessarily reflect those of my
employer.
Sun Microsystems, Inc., has no connection to my involvement with the
Mozilla Organization.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]