Reputation: 353
I installed Netbeans and JDK1.7.0_40 in following directory
Netbeans:
C:\Program Files\NetBeans 7.2
JDK path:
C:\Program Files\Java\jdk1.7.0_40\
Next I tried to do the CLASSPATH thing following this website: http://www.wikihow.com/Install-the-Java-Software-Development-Kit
Under System Variable, I scroll to the end of PATH and added (without deleting anything)
;C:\Program Files\Java\jdk1.7.0_40\
But at command prompt when I type javac, it tells me
javac not recognized as internal or external...
Where did I do wrong?
Upvotes: 1
Views: 170
Reputation: 347214
Add bin
to the end of the Java path...
;C:\Program Files\Java\jdk1.7.0_40\;C:\Program Files\Java\jdk1.7.0_40\bin
javac
lives in the bin directory...
Upvotes: 1
Reputation: 23029
You want another path and it is this one :)
C:\Program Files\Java\jdk1.7.0_40\bin
Upvotes: 2