June 22nd, 2002, 04:14 PM
Is I set classpath correct
I'm read Installation Note jdk 1.4 for win in sun website. but it not explain about classpath.
I'm install classpath on windows.
Some book suggess to set classpath to c:\jdk1.4\jre\lib; (Is it true ?)
Some book suggess to set to directory that compile java code such as c:\javaprogram;
When I not set classpath when use javac. I got message class not found
and when I set classpath only classpath=.; It work.
Why each book tell me different to set classpath.
What really classpath should I set? Is it sufficient to set classpath=.;
June 25th, 2002, 04:43 PM
June 28th, 2002, 11:49 AM
why don't you listen to all of them, and set CLASSPATH to all those paths. You can divide them with ";" symbol like CLASSPATH=c:\jdk\lib;.;c:\widows;c:\games
you may have as many as you need