AixNPanes
AixNPanes

Reputation: 1260

java 7/8 for Eclipse luna on Mavericks

I'd like to upgrade my eclipse from Kepler to Luna on my OSX Mavericks. I also have some web apps that do not seem to work with Java upgraded beyond the 1.6.0_65 level. Is there a method for installing Java 8 for use with Eclipse Luna, but still retain the 1.6.0_65 version as a default.

Upvotes: 0

Views: 1055

Answers (1)

Matt Ball
Matt Ball

Reputation: 359876

Yes, you can have multiple JVMs installed. To set the default JVM to 1.6, set JAVA_HOME to /Library/Java/JavaVirtualMachines/jdk1.6.0_65.jdk/Contents/Home.

To set Eclipse's JVM, follow VonC's instructions for editing eclipse.ini.

However, Eclipse's JVM1 is not tied to the JVM which Eclipse uses when running your Java applications. Those are configured in Eclipse Preferences, under Installed JREs.

enter image description here


1 Eclipse is, of course, a Java application itself, so it runs in a JVM.

Upvotes: 1

Related Questions