0

I have an Ubuntu on VirtualBox and I just installed Eclipse. When I tried to start Eclipse, Eclipse claimed

Version 1.6.0_35 of the JVM is not suitable for this product. Version: 1.7 or greater is required

I installed openjdk-7-jre and openjdk-7-jdk using apt-get install to satisfy Eclipse, then I restarted the virtual machine but Eclipse kept giving the same error.

I checked the java version with java -version and realized that Ubuntu seems to think that I am using 1.6 as well.

How can I fix this?

Note: I double checked that I installed the right version of Eclipse (64-bit)

Zanna
  • 70,465
lulijeta
  • 111

1 Answers1

0

Try this I look it up and Java requires more than that I have not try this fix but here it is. Check out the page HERE

sudo apt-get install eclipse
sudo apt-get install openjdk-6-jdk openjdk-6-source openjdk-6-demo openjdk-6-doc openjdk-6-jre-headless openjdk-6-jre-lib

Execute this in your terminal. The first one installs eclipse if it is already installed it will just update it. (You will be asked to enter your password) and the second one installs all the Java stuff you may need!