Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse java.home environment variable change

 
Dave P
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.class.version=48.0
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
whippersnapper
Ranch Hand
Posts: 1817
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hockeydave,
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
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eclipse -vm %JAVA_HOME%/bin/javaw.exe
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?
thanks,
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic