Posted by: quite_guy December 23, 2007
Java Beginners Help!!!
Login in to Rate this Post:     0       ?        
You need to set up:
1. Add Java/bin folder to class path,
2. set to execute from anywhere (.;).
 Do these below.

Check where is Java installed; and get the path to java/bin folder. Similar to this one C:\jdk1.5.0_05\bin.

Right click on My Computer --> Advanced --> Environment Variable --> From Systems Variables, Highlight Path, and click on Edit, at the end of the line Add these .;C:\jdk1.5.0_05\bin
And OK ->OK

Exit your command prompt, and start again and type java -version, and you should get some results, esle something is wrong;
Read Full Discussion Thread for this article