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[i/].

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

Variable Name : Java_HOME
Variable Value : 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.
 
Easiest way I can think of is to start the app
with a batch file

set JAVA_HOME=C:\j2sdk1.4.0
c:\myApp.exe

This will work. If you want to see just open a dos
shell and type

set JAVA_HOME=C:\j2sdk1.4.0
then
echo %JAVA_HOME%

However this value will be gone as soon as you close the dos
window.
 
Note that variable names are CASE SenSiTive. In your example, you set:

Java_HOME

but then use

JAVA_HOME

Itsa not going to work this way!
 
Hi: Thanks for your help.

That was a typo when I posted on Tek-Tips. I was case-sensitive when entering the environmental variables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top