CLASSPATH
environment variable. Instead I always use the explicit -classpath
or -cp
options when running java, javac, javap
, etc. The other day I was surprised to see a CLASSPATH
environment variable is set:C:\tmp> set CLASSPATHIt seems when I installed apple's quicktime plugin, it automatically set this
CLASSPATH=.;C:\Program Files\Java\jre1.5.0_09\lib\ext\QTJava.zip
C:\tmp> dir "C:\Program Files\Java\jre1.5.0_09\lib\ext\QTJava.zip"
06/12/2006 09:57 AM 1,180,476 QTJava.zip
CLASSPATH
in my environment. I don't like this. I always assume a clean environment when running any java applications. So I removed it:C:\tmp> set CLASSPATH=I can tolerate an installer modifying my
C:\tmp> set CLASSPATH
Environment variable CLASSPATH not defined
PATH
, but not CLASSPATH
.Tags: