Solved adding java bin path in W 2008 R2 x64 environ

March 31, 2011 at 02:41:56
Specs: Windows 2008 R2 (x64)
I have to install an application whose pre-requisite is "It is necessary that the path to java bin directory is added to the path environment variable". I have JDK 1.5 installed in Programme Files (x86) folder of my Windows 2008 R2 64bits OS. In Environment Variables>"User Variables for administrator" as well as "System Variables" i have added the following path:
in Variable name: JAVA_HOME in Variable value: C:\Program Files (x86)\java\jdk1.5.0_22\bin

this is the installation path for my JDK. now if i use 'Progra~1' instead of complete folder name ... there might be conflict bewtween Program Files and Program Files (x86). what am i doing wrong in adding the path?

i test the path by typing 'java -version' in CMD. so far it doesn't give any result.

I am a newbee so please be with your explainations to me :)


See More: adding java bin path in W 2008 R2 x64 environ

Report •

March 31, 2011 at 02:55:53
✔ Best Answer
You need to add the path to the PATH environment variable. The spaces in the path are fine; you don't need to use the shortened version. Edit the current value of that variable and add

;C:\Program Files (x86)\java\jdk1.5.0_22\bin

at the end of it. Don't delete anything and note the ";" at the start of what you are adding.The JAVA_HOME variable should be set to

C:\Program Files (x86)\java\jdk1.5.0_22

(i.e. omit the "\bin".)

Report •

March 31, 2011 at 04:19:46
It worked well!! Thanx again

Report •

Related Solutions

Ask Question