Eclipse JVM on Stage Switch

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.

+4
source share
2 answers

This is a bug in Eclipse, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=396552

I do not know about this, but you can try setting the JAVA_JVM_VERSION environment JAVA_JVM_VERSION .

The error report indicates that the problem is fixed, you can try a later milestone or try to grab the binaries that were attached to the error.

+2
source

We have plugins that require Java 7. I do not use the eclipse.ini method because it is overwritten during various Eclipse updates. Instead, we put a folder named "jre" inside the Eclipse folder, and it will automatically use it for the JVM. I switch workspaces all the time using File -> Switch Workspace without any problems.

0
source

Source: https://habr.com/ru/post/1480806/


All Articles