CLASSPATH question
Cameron La Rue
casper@dancris.com
Wed, 30 Aug 2000 22:44:17 -0700
a sample classpath might be:
CLASSPATH=.:/home/casper/pws/java_app:/home/casper/pws/jars/java_app.jar:
The . means check in the directory I run javac from first. Then look in the
java_app directory (where there would be a bunch of .class files). The last
place it would look is the jar file (which obviously contains a bunch of
class files). I like to do it this way so I can jar up my program once I've
written all the classes, but if I want to modify one class, I can test it by
putting the .class file in the java_app directory. The version there would
get found before the one in the jar file.
----- Original Message -----
From: der.hans <PLUG@LuftHans.com>
To: Plug-Devel (E-mail) <plug-devel@lists.PLUG.phoenix.az.us>
Sent: Wednesday, August 30, 2000 12:01 PM
Subject: Re: CLASSPATH question
> Am 30. Aug, 2000 schwäzte Lucas Vogel so:
>
> > Could someone give me some quick "best practices" advice on setting up
> > $CLASSPATH? The reason I ask is because documentation seems to say it
has to
> > at least point at the directory, while some seem to say that your .jar
file
> > has to actually be in the $CLASSPATH. Any comments would be appreciated.
>
> I think this is just semantics. It's been a while, but I'm pretty sure
> $CLASSPATH functions the same as $PATH, e.g. colon separated list of
> directories to search. The JVM then searches those dirs for .jar files.
>
> ciao,
>
> der.hans
> --
> # der.hans@LuftHans.com home.pages.de/~lufthans/ www.Opnix.com
> # When I work, I work hard. When I play, I play hard.
> # When I sit, I sleep. - Embe Kugler
>
>
> _______________________________________________
> Plug-devel mailing list - Plug-devel@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-devel
>