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

Bug 468239

Summary: Installer should find and propose the standard JVM as per the user's PATH
Product: [Tools] Oomph Reporter: Stephan Herrmann <stephan.herrmann>
Component: SetupAssignee: Ed Merks <Ed.Merks>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 465370, 466867    

Description Stephan Herrmann CLA 2015-05-25 17:57:48 EDT
I have a bunch of JVMs installed by my OS (Ubuntu).

Additionally, I have the latest and greatest JDK manually installed into a different path.

I have configured my PATH to use the latter JDK.

When I fire up the Oomph installer it only shows all those OS installed JVMs, not the one from my PATH, but I would like to see that actually as the first choice.
Comment 1 Eike Stepper CLA 2015-05-26 04:28:06 EDT
This is also related to bug 465370.
Comment 2 Eike Stepper CLA 2015-05-26 04:29:40 EDT
And to bug 466867.
Comment 3 Ed Merks CLA 2015-05-28 09:36:06 EDT
This is address by this commit:

http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/commit/?id=13bb84027e0aa7a3992c93a9402218cf8c312b8f

I.e., the java.home of the running installer will be included as a JRE.  It will be the default if it's a valid choice and you've not chosen a different one previously; the dialog remembers the most recent choice.  You can remove ~/.eclipse/org.eclipse.oomph.jreinfo/defaults.txt to reset this historical knowledge.
Comment 4 Stephan Herrmann CLA 2015-05-28 16:00:47 EDT
I just updated Oomph, removed defaults.txt and then later everything in ~/.eclipse/org.eclipse.oomph.jreinfo/, but still in the Java Virtual Machines dialog I only see a bunch of VMs under "System" (those from the OS), and no mentioning of my default 1.8 VM.

How can I find out, which JVM is actually used by Oomph? 
According to lsof -p, Oomph is accessing a lot of files of the desired 1.8 VM *plus* /usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386/IcedTeaPlugin.so
Comment 5 Stephan Herrmann CLA 2015-05-28 16:06:57 EDT
Ah, maybe I should be more patient to wait for the update to appear on my end? Which build do I need in order to get the fix?
Comment 6 Stephan Herrmann CLA 2015-05-28 16:10:26 EDT
Restoring previous bug-status while waiting for the update, sorry for the churn ...
Comment 7 Ed Merks CLA 2015-05-29 00:52:24 EDT
You should see one of the JREs shown bold in the dialog.  This is the one corresponding to java.home of the current running VM.  I certainly see that on my Linux box, Mac box and Windows, so there should always be a bold entry and without persisted default, which should be chosen the first time.