Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Just learning java. I get the errorjavac is not recognized as an internal or external cmd. In my EV I start it with %PATH% then the C..Prog Files\java\ver\bin. Is this correct? And for classpath I just have same as above except no %PATH% and \jre\bin. I still get the error. Can anyone guide me ? Thanks so much..

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Your first mistake is that javac is not in the JRE binary folder, it's in the JDK folder. You don't need to prefix your path with %PATH% either. Your path should look something like this:

C:\Perl\site\bin;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Proram Files\Java\jdk1.6.0_06\bin

each entry is separated by a semicolon (;)

In case you may be configuring it in the wrong place, it is done under My Computer -> Properties -> Advanced -> Environment Variables. Simply append a semicolon and then the path of your JDK's bin folder to the existing line.

share|improve this answer

Perfect Solution by John, If you are confused with editing the variables, You can try Path Editor GUI

alt text

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.