Have you ever try to run a Java program from command line only to get an error?
‘java’ is not recognized as an internal or external command,
operable program or batch file.
What happened? You know you installed Java. The above error on Windows means, that you didn’t add the Java directory to the System PATH. I typically add the JAVA_HOME environment variable and the %JAVA_HOME%bin to the PATH. This works. But, since I work with different versions of Java, I tend to add these to batch files that run Java command, instead of hard coding to one version at the system level.
You want to see if Java is installed on your machine and if so what version? you can simply search for “Java.exe” in Windows explorer. But, there are several ways to make sure it will work as expected:
On command prompt
View original post 439 more words