Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Can't change Eclipse JVM on Mac
Can't change Eclipse JVM on Mac [message #1276963] Tue, 25 March 2014 09:21 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 3
Registered: July 2010
Junior Member
I am trying to make Eclipse run under JVM 1.7 rather than 1.6
I have installed a JDK to /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk
Then updated Info.plist:

<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java</string>

(the latter appears to be 1.7.0_51)

But eclipse "About Eclipse/Installation Details/Configuration" still shows that:

-vm /System/Library/Frameworks/JavaVM.framework
java.home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java.runtime.version=1.6.0_65-b14-462-11M4609
java.version=1.6.0_65

How can I make eclipse run with JVM 1.7?

[Updated on: Tue, 25 March 2014 09:22]

Report message to a moderator

Re: Can't change Eclipse JVM on Mac [message #1277184 is a reply to message #1276963] Tue, 25 March 2014 16:16 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
You should update Eclipse.app/Contents/MacOS/eclipse.ini and point it
use -vm .... before -vmargs!

Tom

On 25.03.14 10:21, Missing name Mising name wrote:
> I am trying to make Eclipse run under JVM 1.7 rather than 1.6
> I have installed a JDK to /Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk
> Then updated Info.plist:
>
> <string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java</string>
>
>
> (the latter appears to be 1.7.0_51)
>
> But eclipse "About Eclipse/Installation Details/Configuration" still
> shows that:
>
> -vm /System/Library/Frameworks/JavaVM.framework
> java.home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> java.runtime.version=1.6.0_65-b14-462-11M4609
> java.version=1.6.0_65
>
> How can I make eclipse run with JDK 1.7?
Re: Can't change Eclipse JVM on Mac [message #1277213 is a reply to message #1277184] Tue, 25 March 2014 17:18 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 3
Registered: July 2010
Junior Member
I have added

-vm
/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java

to eclipse.ini rigth before "-vmargs".

But eclipse still runs under JVM 1.6 rather than 1.7.
Re: Can't change Eclipse JVM on Mac [message #1277662 is a reply to message #1277213] Wed, 26 March 2014 09:39 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Does that really point to Java7? Jdk7 & 8 are installed in
/Library/Java/JavaVirtualMachines/

Tom

On 25.03.14 18:18, Missing name Mising name wrote:
> I have added
> -vm
> /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java
>
> to eclipse.ini rigth before "-vmargs".
>
> But eclipse still runs under JVM 1.6 rather than 1.7.
Re: Can't change Eclipse JVM on Mac [message #1277688 is a reply to message #1277662] Wed, 26 March 2014 10:16 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Hm I can somehow remember this -vm not getting picked up appropriately
in the ini file.

Can you try Eclipse.app/Contents/MacOS/eclipse -vm .... to lauch on the
command line.

Tom

On 26.03.14 10:39, Tom Schindl wrote:
> Does that really point to Java7? Jdk7 & 8 are installed in
> /Library/Java/JavaVirtualMachines/
>
> Tom
>
> On 25.03.14 18:18, Missing name Mising name wrote:
>> I have added
>> -vm
>> /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java
>>
>> to eclipse.ini rigth before "-vmargs".
>>
>> But eclipse still runs under JVM 1.6 rather than 1.7.
>
Previous Topic:Eclipse Kepler JDK issues.
Next Topic:How to setup WAS in Eclipse
Goto Forum:
  


Current Time: Thu Dec 18 19:42:51 GMT 2014

Powered by FUDForum. Page generated in 0.02489 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software