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!

How do I set the JAVA_HOME path ?

Status
Not open for further replies.

Plato23

Programmer
Oct 29, 2001
2
CH
Hello,
I have installed J2sdk1.3.1, J2sdk1.4beta and J2sdkee1.3 on Windows NT.
Then I have opened an MS-DOS Command Promt and set the path like this:

1. set J2EE_HOME=C:\j2sdkee1.3
2. echo %J2EE_HOME% ==> C:\j2sdkee1.3
3. set JAVA_HOME=C:\jdk1.3.1
4. echo %JAVA_HOME% ==> C:\jdk1.3.1

Now I want to start J2EE but an Error-Message appears:

5. j2ee ==> ERROR: Set JAVA_HOME to the path of a valid jdk.
7. echo %JAVA_HOME% ==> C:\jdk1.4\bin

So its very ugly for me, why the path which is been set before is now changed, and what do i need to do to solve this problem ?

Many Thanks
Plato
 
The J2EE script is probably explicitly setting the JAVA_HOME. Open up that bat file and set it to the home of your choice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top