|Start a new Command Prompt window and type PATH at the |
C:\> prompt. You should see something like this, all on one
line that possibly wraps around so it looks like several lines:
Just make sure it includes the JDK directory (which typically
includes the update number e.g. _14 and not just 1.6.0) Then
copy that directory name into your clipboard and do:
C:\> DIR "C:\Program Files\Java\jdk1.6.0_14\bin"
and make sure javac.exe is listed.
The reason java -version works is that the installation copies
java.exe into C:\Windows\system32 but javac.exe remains in
the JDK bin directory. You probably haven't set up the PATH
Finally, NetBeans is a development environment that requires
the JDK to be present before you can install it. By all means
use it if you want, but it's not an alternative to the JDK as you