Table of Contents > Getting Started > Troubleshooting > Modifying the Path
Modifying the Path
Modifying the path is serious business; you have to be extremely careful not to delete the wrong thing. If you don't feel comfortable changing your computer's path, see your TA for help.


To modify your path in Windows XP or 2000:

  1. Right click on the "My Computer" icon on your desktop and select "properties" from the menu. This displays the System Properties dialog box.
  2. Click on "Advanced" and then "Environment Variables."
  3. Now you'll see a list of variables including Path. Double click on Path to edit it but BE CAREFUL NOT TO DELETE ANY OF THE INFORMATION ALREADY IN PATH. You need to ADD the location of java, but you don't want to take anything out. To add the location of java, use a semi-colon at the end of the path variable and type in the location where you installed java.

    EXAMPLES:
    An example of a Windows Path that has been modified to include the folder j2re1.4.1_01, which is in the folder Java, which is in the folder Program Files:
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\j2re1.4.1_01
    Note: %SystemRoot% usually refers to the WINDOWS folder. For example, if you create a folder in the WINDOWS folder called JVM, you will need to modify the path as show below.

    An example of a Windows Path that has been modified to include the folder JVM, which is in the folder WINDOWS:
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\JVM
     
To modify your path in Mac OS X:
  1. Open the Terminal.
  2. Type:
    emacs .cshrc
    this command tells the computer to use the text editor emacs to open the file .cshrc. Or, if there was no file called .cshrc, it will create one.
  3. Make sure that the following line appears in the .cshrc file:
    set path=( /Users/yourusername/Jython-2.1 $path)
  4. Type 'Ctrl-x' followed by 's' to save the edited document.
  5. Type 'Ctrl-x' followed by 'Ctrl-c' to exit the emacs program.
  6. Close the Terminal and open it again so the new path can take effect.
     
To modify your path in Red Hat Linux:
  1. Open the Terminal Emulation Program.
  2. Type:
    emacs .bashrc
    this command tells the computer to use the text editor emacs to open the file .bashrc. Or, if there was no file called .bashrc, it will create one.
  3. Make sure that the following line appears in the .bashrc file:
    export PATH=/usr/java:/usr/java/j2re1.4.0_01/bin:$PATH
    if there is already other information in the file, simply type the line shown above at the end of the file.
  4. Type 'Ctrl-x' followed by 's' to save the edited document.
  5. Type 'Ctrl-x' followed by 'Ctrl-c' to exit the emacs program.
  6. Close the Terminal Emulation Program and open it again so the new path can take effect.