Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Eclipse on Mac - JVM Version 1.7 or greater is required

I downloaded Eclipse (specifically that for C/C++ Programming) for Mac, running OSX Mavericks. When I try to start Eclipse, it gives me this message: "Version 1.6.0_65 of the JVM is not suitable for this product. Version 1.7 or greater is required", and it doesn't open. I installed Java version 7, but nothing changed. I don't know how else to update the JVM (I don't know much about Java in general).

I downloaded the 64-bit version for my MacBook Air, if that matters.

like image 706
Tchaikovsky Avatar asked Aug 19 '14 15:08

Tchaikovsky


People also ask

Which JVM does Eclipse use?

The latest release of Eclipse requires a 64-bit JVM, and does not support a 32-bit JVM. Current releases of Eclipse require Java 11 JRE/JDK or newer. A Java Development Kit (JDK) includes many useful extras for Java developers including the source code for the standard Java libraries.

What version of Eclipse works with Java 11?

I am pleased to announce Java 11 support for Eclipse 2018-09 (4.9). The release notably includes the following Java 11 features: Nest-Based Access Control (JEP 181) Basic support for Dynamic Class-File Constants (JEP 309)


2 Answers

Simply Install the JDK 7 or JDK 8, and not just the latest JRE.

like image 141
Nadeem Avatar answered Oct 19 '22 11:10

Nadeem


Run whereis java in a Terminal. It will normally display something like /usr/bin/java.

Now run java -version. It shows you 'java version 1.6.0_65' or something approaching. This is because Java 7 does not replace Java 6. Java 7 is installed as an Internet Plug-in and can be found in /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.

What you need to do is to symlink /usr/bin/java to /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java.

Restart Eclipse, or reboot your computer (I don't know how Eclipse manages this), and it should do the trick. :)

like image 43
Richard-Degenne Avatar answered Oct 19 '22 10:10

Richard-Degenne