This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
A small correction in the classpath
Posted by Jeganathan on November 01, 2000 at 11:46 PM
the correction is path=urdrive:\urjavadirectory\bin;c:\windows\command; and set CLASSPATH=. actually in the above path u r setting the path where exactly ur javac.exe(compiler),java.exe(interpreter) and so many other tools like javap etc., etc., are available only then u will be able 2 execute ur programs from within ur directory instead of switching over 2 java/bin directory and semicolon indicates that u have some more path environments like if u set only the first path available b4 ; then u won't be able 2 run edit r so many dos utilities that come with windows\command directory so u also set the windows\command directory and in the classpath u specifyt the interpreter where 2 search 4 urjava.class files and . in the classpath indicates current directory. i hope u understand now.
Replies:
|