Error Eclipse does not find JVM

0

Hello, I use Linux Mint 16 and I installed eclipse and I rode around quietly, but after installing eclipse I uninstalled OpenJDK 1.7 and installed JavaJDK 1.8. I edited the / etc / profile file by adding these lines:

JAVA_HOME=/usr/lib/jvm/jdk8u1
PATH=$JAVA_HOME/bin:$PATH export PATH JAVA_HOME
CLASSPATH=$JAVA_HOME/lib/tools.jar
CLASSPATH=.:$CLASSPATH
export PATH JAVA_HOME CLASSPATH  

When you run the java -version and javac -version commands, the results are correct, showing that java has been installed successfully. I opened the eclipse again and this is the error that is appearing:

Version 1.5.0 of the JVM is not suitable for this product. Version: 1.6 or greater is required.

It is as if the eclipse was only visualizing the java version that remains after uninstalling OpenJDK.

Can anyone help me?

    
asked by anonymous 13.04.2014 / 08:08

1 answer

1

There are two versions of Eclipse in Linux:

  • The version of the official Eclipse site is the one that talks to JavaJDK (Oracle official).
  • The version downloaded via repositories like apt-get is the one that talks to OpenJDK.

Try downloading the official website version to see if it works.

    
13.04.2014 / 23:22