Posted By: Anonymous
When trying to check the current version of Java in which I am running, I received the error "java is not recognized as an internal or external command, operable program or batch file.".
I am running Windows 7 OS and have downloaded the latest JDK and felt I may have accidentally deleted the java from machine as before I was able to check the Java version using the command "java -version".
What software must I download to get Java working on my machine again?
I have managed to get Java running from my cmd again after ensuring all environment variables pointed to the current Java SDK.
You need to configure your environment variables,
JAVA_HOME must contain the path to java, and you should add %JAVA_HOME%bin to
Alternatively, you can simply add to your
PATH the whole path to the bin folder, without the
JAVA_HOME variable, however, this makes a little more annoying when you need to have more than one java version on your machine (that way you only need to change
JAVA_HOME and don’t even bother with