Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317634

Summary: [launcher] Please do not overwrite exported JAVA_HOME variable
Product: [Eclipse Project] Equinox Reporter: Benjamin Drung <bdrung>
Component: FrameworkAssignee: equinox.framework-inbox <equinox.framework-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aniefer, remy.suen, tjwatson
Version: 3.6   
Target Milestone: 3.7 M2   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
java-home.patch
none
patch none

Description Benjamin Drung CLA 2010-06-22 15:41:51 EDT
Created attachment 172453 [details]
java-home.patch

Please do not overwrite exported JAVA_HOME variable in org.eclipse.equinox.executable (patch attached).
Comment 1 Andrew Niefer CLA 2010-08-27 15:48:30 EDT
Created attachment 177644 [details]
patch

Would like to use the -java argument if it is passed in instead of a pre-existing JAVA_HOME.

Updated patch uses java in this order of precedence:
1) passed in -java
2) existing JAVA_HOME
3) default java home as specified in the build.sh for some platforms

In all cases, we restore the JAVA_HOME to the original value at the end of the script.
Comment 2 Andrew Niefer CLA 2010-08-27 15:49:43 EDT
released to head