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)