Setting Up PATH and CLASSPATH

  1. With your text editor, create a new text file in your root directory called: c:\paths.bat.
  2. Add the following lines to the file:
    set path=c:\jdk1.3\bin;c:\jikes\bin;%path%
    set classpath=c:\jdk1.3\jre\lib\rt.jar;.;c:\orion\orion.jar
    
  3. Now you will need to run this batch file prior to compiling or running your java programs from a command prompt. To run the batch file, type the following from a DOS prompt:
    \paths.bat
    
Notes: