Does anyone know how to specify what jvm eclipse will launch when switching workspace? If I started eclipse using eclipse.ini containing:
-vm Library / Java / JavaVirtualMachines / jdk1.7.0_17.jdk / Table of Contents / Home / bin / Java
Running eclipse with this jre. Console exit confirms this:
5/14/13 4: 01: 16,932 PM [0x0-0x51b51b] .org.eclipse.eclipse: eclipse.buildId = M20130204-1200 5/14/13 4: 01: 16,932 PM [0x0-0x51b51b] .org.eclipse .eclipse: java.version = 1.7.0_17 5/14/13 4: 01: 16,932 PM [0x0-0x51b51b] .org.eclipse.eclipse: java.vendor = Oracle Corporation
When I switch the workspace, although for some reason it starts itself with 1.6 jvm.
5/14/13 4: 07: 51.596 PM [0x0-0x51b51b] .org.eclipse.eclipse: eclipse.buildId = M20130204-1200 5/14/13 4: 07: 51.597 PM [0x0-0x51b51b] .org.eclipse .eclipse: java.version = 1.6.0_45 5/14/13 4: 07: 51.597 PM [0x0-0x51b51b] .org.eclipse.eclipse: java.vendor = Apple Inc.
This is a problem because our plugins that require 1.7 cannot load. It is on OSX 10.7.5, but it also happens on 10.8.
JAVA_HOME points to 1.7 jvm and / usr / bin / java is also symbolically attached to 1.7 jvm./usr/bin appears near the head of my PATH and it is actually the only java in my path. I suggest that the eclipse should assume that the "best" jvm is one that is in /System/Library/Frameworks/JavaVM.framework/Versions/Current or /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK and points 1.6.
source share