'javac' is not recognized as an internal or external command or batch file.
I've Googled this problem time and time, and the majority of the results are this page. I've seen about 10 different posts about my problem (in the title) and tried all of the solutions people have posted (all of them saying to add the environment variable to CLASSPATH). It still does not work. Here is was my CLASSPATH variable looks like:
C:\Program Files\Java\jdk1.6.0_25\;C:\Program Files\Java\jdk1.6.0_25\bin\
I have JDK 6u25 64-bit and both 32-bit and 64-bit versions of Java 6u30 installed (my computer is picky and needs both to work properly).
Can anyone help me?
Any help will be thanked!
P.S: It WAS just 'javac' not working, but while writing this post I tried it with JDK 7u1, which broke 'java' (even after uninstall), in turn breaking a lot of my things that I need.
Re: 'javac' is not recognized as an internal or external command or batch file.
You must've misread the replies on this subject: you have to set your PATH environment variable, not the CLASSPATH variabe; you have to add the directory where your javac.exe file is stored.
kind regards,
Jos
Re: 'javac' is not recognized as an internal or external command or batch file.
Ah.. derp XD. Thanks for the swift reply! I'll try that now.
Re: 'javac' is not recognized as an internal or external command or batch file.
Go through this Lesson: Common Problems (and Their Solutions) (The Java™ Tutorials > Getting Started)
Any 'solutions' that talk about adding to the CLASSPATH are just wrong. CLASSPATH has nothing whatsoever to do with the error message that is the subject of your thread.
If you don't have any third party software that relies on the CLASSPATH, remove it. If you retain it, ensure that it starts with the current working directory, represented by a dot '.'
db