wood burning stoves
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse java.home environment variable change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse java.home environment variable change" Watch "Eclipse java.home environment variable change" New topic

Eclipse java.home environment variable change

Dave P

Joined: Jun 05, 2001
Posts: 8
Anyone know how to get eclipse to switch it's java.home environment variable? It doesn't take the windows environment setting. You can see this via Eclipse->help->configuration details. I even went into windows->preferences->java->Installed JREs and added c:/j2sdk1.4.1 to it. This is the SDK, not the the plain old JRE. I made that my active JRE and restarted eclipse. Eclipse is still using c:/program files/java/j2re1.4.1 instead.
Thanks, Dave
java.class.path=C:\Program Files\eclipse\startup.jar
java.endorsed.dirs=C:\Program Files\Java\j2re1.4.1\lib\endorsed
java.ext.dirs=C:\Program Files\Java\j2re1.4.1\lib\ext
java.home=C:\Program Files\Java\j2re1.4.1
Michael Matola
Ranch Hand

Joined: Mar 25, 2001
Posts: 1793
Please take another look at the JavaRanch Naming Policy. We'd like to have you continue posting here, so please update your display name. You can do so here.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
eclipse -vm %JAVA_HOME%/bin/javaw.exe

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I have the same problem. I am wondering how to switch
java.home on Eclipse from Program Files to j2sdk/bin.
Ilja Preuss, where to put the line of path of yours?
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Got it, put that in Eclipse properties.
But I am wondering if we can set this up inside Eclipse
Windows Preferebces.
[ February 03, 2004: Message edited by: victor gu ]
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
Dave P,
Your getting closer, but your display name still doesn't comply. Please re-read the naming policy referred to in Michael's post and change your display name accordingly.

Matthew Phillips
I agree. Here's the link: http://aspose.com/file-tools
subject: Eclipse java.home environment variable change
It's not a secret anymore!