Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Environmental Variable - Driving me CRAZY!!!

Status
Not open for further replies.

jeanpierre

Technical User
Jun 14, 2001
137
CA
I need to set the Environmental Variable in Windows XP (HOME).

The instructions call for adding "JAVA_HOME=C:\j2sdk1.4.0"

What I did was do to Control Panel, Clicked on Systems and then the Advanced Options; and then Environmental Variables.

In the System Variables section, I clicked on New and then entered:

Variable Name : Java_Home
Variable Value : JAVA_HOME=C:\j2sdk1.4.0

BUT when I attempt to run the application that requires the setting of JAVA_HOME , the application states that "The specific file was not found JAVA_HOME=C:\j2sdk1.4.0\bin\java.exe"

What have I done INCORRECTLY????

This is driving me crazy. All assistance is TREMENDOUSLY appreciated.
 
I may be wrong but shouldn't the value be:-
C:\j2sdk1.4.0
without the "JAVE_HOME=" bit...

Just a wild stab in the dark!
 
jeanpierre,

The executable "java.exe" is expected in "C:\j2sdk1.4.0\" but is actually in "C:\j2sdk1.4.0\bin\".
Try changing the path in the variable to include the \bin\ folder and the error message should subside.

-Brett
 
Hello:

Thanks for your responses.

I tried with both suggestions....but unfortunately no go.

On the second suggestion above, when I set the variable value to "JAVA_HOME=C:\j2sdk1.4.0\bin"

I obtained the error message :

specific file was not found JAVA_HOME=C:\j2sdk1.4.0\bin\bin\java.exe.
 
Remove the JAVA_HOME= part out of the variable value. All Complaints Will Be Routed To /dev/null
 
You should also need to set the path so it is able to find the files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top