javac and java. In order
to make it relatively easy to run these commands, you should
set your machine's PATH environment variable
to include the directory that the java executables
(javac and java) are in. If you install the latest update
of Jave SE
from the Sun Website, by default the Java executables
(java and javac will be placed in
C:\Program Files\Java\jdk1.6.0_14\bin.
If you install a different version of Java, or if you specify a
different destination path during installing,
the required path will be different.
Here's how to change your Path variable on a PC which
runs Windows XP.
Find the System icon in the control panel and double-click on it. You will see this:
If you do not have administrator priveleges, you may need to edit
(or create) the Path environment variable in the "User variables"
section of the above window.
If you have installed a different version of Java, then change the above line accordingly.