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

Bug 168775

Summary: [Equinox Launcher] Create separate java process when -vm points to exe
Product: [Eclipse Project] Equinox Reporter: Andrew Niefer <aniefer>
Component: IncubatorAssignee: equinox.incubator-inbox <equinox.incubator-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, markus.kell.r
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 168726    

Description Andrew Niefer CLA 2006-12-20 15:52:34 EST
When the user specifies -vm pointing to an executable, then we should launch java in a separate process using the executable they specified like the old launcher did.

If the user doesn't explicitly specify an executable, then we will create the vm in the same process using JNI if possible.

This provides a better fallback story if we have problems (ie bug 167310, 168271).
This also allows using something like gcj on linux that doesn't have the jvm shared library.
Comment 1 Andrew Niefer CLA 2007-01-19 17:49:00 EST
This is now in HEAD and builds > I20070119
If -vm points at a library, we attempt to load the library using JNI invocation.  If it points at an executable, we fork a process with that exe like the old launcher did.

If no -vm is specified, the vm is found in the normal way and JNI is used on those platforms where it works well (win32, macosx, linux.x86, solaris).  On those platforms that don't work well (linux.ppc, linux.x86_64, aix) we fork the executable.