I've purchased a new computer since last using Java (Windows XP), and know I need to set the path to be able to get it to compile from the command line. I've installed J2EE, and I've installed TextPad.
I noticed that through the installation process, the following PATH user variable was created: C:\Sun\AppServer\bin
Setting PATH variable in XP: Start>Control Panel>System properties (arrange in the "old view mode" if necessary to find System properties)>Advanced>Enviroment Variables>User Variable for user(your name) click "new", in "variable name" type PATH, in "variable value" type c:\j2sdk1.4.2_03.bin. Click "Apply" and restart if asked... after that javac and java will work from anywhere. Give some feedback and good luck,
Also, i've found that if you have a command window open before you add/change any environment variable, it won't pick up the new one. only command windows opened AFTER the change is saved will know about them. if you restart, obviously that's not a problem. [ April 02, 2004: Message edited by: fred rosenberger ]
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors