Tuesday, September 18, 2012

JDK Installation Issue

I was installing JDK today on a new virtual desktop that will be used by developers. I got the JDK to install fine but was unable to run the JMeter Java application used for load testing. It was throwing an error that the java.exe is not recognized.

error "'java.exe' is not recognized as an internal or external command, 
operable program or batch file. 
errorlevel=9009 

I found the solution at http://www.coderanch.com/t/95488/Testing/start-JMeter. The user tgrtgr lakmini added the solution with a step by step. The trick is to change the PATH system variable to include the path of the JRE runtime binary folder. 

I had the same problem with Win 7. I copied the java installed path and copied it to environment variable path in the Advance system settings..
1. Copied "C:\Program Files (x86)\Java\jdk1.7.0_01\bin" this path
2. Right click Computer --> properties --> Advance system setting --> environment variables
3. In the system variable section select path and then paste the above copied java installed path following with ";"

It should look something like, C:\Program Files (x86)\Java\jdk1.7.0_01\bin, or  C:\Program Files (x86)\Java\jre7\bin for the JDK 7 version. 

Keep your eyes towards the eaves of IT.

No comments:

Post a Comment