Re: What's the effect in different classpath set?



Lew wrote:
525 wrote:
Some books use this: classpath=c:\jdk\lib\tools.jar;
> nor is the first form isn't necessary because the JARs in the
$JAVA_HOME/lib/ directory don't need to be part of the classpath explicitly.

I don't think tools.jar is in classpath by default.

I strongly recommend that you do not use the CLASSPATH envar, but use the -classpath (or -cp) option to your Java tools. CLASSPATH is far too global.

Very good advice.

Arne
.