How can I simplify my typing of command-line javac and java commands?
(Or, Why would I ever want to know anything about Windows Environment Variables?)
Do you want to simplify your typing of the "javac" and "java" commands (when
entering these commands in a console window)?
On a typical Windows XP machine, go to Control Panel...System...Advanced...Environment Variables
Probably there will already be a "PATH" environment variable.
Edit it to add an entry pointing to the bin directory of the JDK5 folder.
For example, if your PATH variable looks like this:
C:\WINDOWS;C:\WINDOWS\COMMAND
you can change it to this:
C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK5\BIN
I.e. add a new entry, for the JDK5\bin directory, to your existing PATH statement.
Use the exact name of the JDK5 directory/folder, as it has been installed
on your machine. Note that it is a list of paths, separated by semicolons.
If you do not already have a PATH variable, then create one that points to
the JDK5 folder, e.g. c:\JDK5\bin