Many people seem to have problems with setting the PATH and CLASS PATH variables, and struggle even when they know that this is the cause of their problems in trying to create the well formed command line "set classpath...etc"
I personally went and created the environment variable through Windows, which worked the first time, after struggling for a while at the command line syntax.
The steps I took to do it in Windows XP: Start->Settings->Control Panel->System->Advanced Tab-> Environment Variables
"User variables for username" Box->"New" Button
Variable name:PATH
Varaible value: C:\Program Files\Java\jdk1.6.0_05\bin
Click on OK and select the new tab
Variable name:CLASS PATH
Varaible value: C:\Program Files\Java\jdk1.6.0_05\lib
"Ok" until you close all the windows, and reboot the system. (Technically you only need to end java processes, but a reboot never hurts)
Everything should work now.
I've never been a fan for hand holding, but wasting time on code set up is frustrating and wasteful. Good luck everyone.
I personally went and created the environment variable through Windows, which worked the first time, after struggling for a while at the command line syntax.
The steps I took to do it in Windows XP: Start->Settings->Control Panel->System->Advanced Tab-> Environment Variables
"User variables for username" Box->"New" Button
Variable name:PATH
Varaible value: C:\Program Files\Java\jdk1.6.0_05\bin
Click on OK and select the new tab
Variable name:CLASS PATH
Varaible value: C:\Program Files\Java\jdk1.6.0_05\lib
"Ok" until you close all the windows, and reboot the system. (Technically you only need to end java processes, but a reboot never hurts)
Everything should work now.
I've never been a fan for hand holding, but wasting time on code set up is frustrating and wasteful. Good luck everyone.