To modify your path in Windows XP or 2000:
- Right click on the "My Computer" icon on your desktop and
select "properties" from the menu. This displays the System
Properties dialog box.
- Click on "Advanced" and then "Environment Variables."
- 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:
- Open the Terminal.
- 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.
- Make sure that the following line appears in the .cshrc file:
set path=( /Users/yourusername/Jython-2.1 $path)
- Type 'Ctrl-x' followed by 's' to save the edited document.
- Type 'Ctrl-x' followed by 'Ctrl-c' to exit the emacs program.
- Close the Terminal and open it again so the new path can take effect.
To modify your path in Red Hat Linux:
- Open the Terminal Emulation
Program.
- 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.
- 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.
- Type 'Ctrl-x' followed by 's' to save the edited document.
- Type 'Ctrl-x' followed by 'Ctrl-c' to exit the emacs program.
- Close the Terminal Emulation Program and open it again so the new
path can take effect.
|