Install JDK 8 (not JRE 8) to run Eclipse Mars on OS X Mavericks [message #1702070] |
Sat, 18 July 2015 13:30  |
Eclipse User |
|
|
|
The instructions are not clear that you need to update the Java JDK (not the JRE) to run Eclipse on OS X. In addition, there are many suggestions online to edit Eclipse.ini and Info.plist inside Eclipse.app that appear to be unnecessary with Mars 4.5.0.
Possibly this will save someone a few minutes to get Eclipse running on OS X:
1 - Download the OS X version of Eclipse. I used "Eclipse IDE for C/C++ Developers" (based on Mars 4.5.0) from here (I removed the link due to warning "You can only use links to eclipse.org sites while you have fewer than 5 messages")
2 - Unzip and copy Eclipse.app to Applications.
If you run Eclipse now you will get the error similar to "Version 1.6.0_65 of the JVM is not suitable for this product. Version 1.7 or greater is required."
I wasted quite a bit of time here installing Java JRE 8 and editing Eclipse.ini and Info.plist.
3 - Download and install Java JDK 8 (not JRE 8). Here is a link, or do a search for JDK 8.
(I removed the link due to warning "You can only use links to eclipse.org sites while you have fewer than 5 messages")
4 - Run command below in a terminal to verify JDK installed correctly. You may not have the older JVMs, but need to see 1.8 is there.
$ /usr/libexec/java_home --verbose
Matching Java Virtual Machines (3):
1.8.0_51, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
1.6.0_65-b14-462, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
1.6.0_65-b14-462, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
That's it. Eclipse should run now. No need to edit Eclipse.ini or Info.plist.
|
|
|
|
Powered by
FUDForum. Page generated in 0.05807 seconds