I have suggested to many peoples about to use
IDE for faster and hassle free developement
where you really can work on logic rather than working on these hidden configuration issues.
Download eclipse and start working on it ,i bet you can thank me for this suggestion
Other light wieght java IDE are also available
Recommended to beginners
http://www.jcreator.com/
http://www.bluej.org/
http://drjava.sourceforge.net/
BTW, answering to you original answer
Developers are supposed to have JDK installed.
To Install the JDK Software and Set JAVA_HOME on a Windows System
1. Install the JDK software.
1. Go to http://java.sun.com/javase/downloads/index.jsp.
2. Select the appropriate JDK software and click Download.
The JDK software is installed on your computer, for example, at C:\Program Files\Java\jdk1.6.0_02. You can move the JDK software to another location if desired.
2. To set JAVA_HOME:
1. Right click My Computer and select Properties.
2. On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.
Note: if you dont want this hassles go for lightwieght IDE and just concentarte on programming.
Using IDE can be easily looked after in youtube video or so search it in a minute or two you will
be ready to code on ide so why to waste time?
Hope this helps
Cheers