Specify Java VM for Eclipse

To let Eclipse use the Java VM from /opt/jdk/bin/java add these two lines to the eclipse.ini in the Eclipse installation directory:

-vm
/opt/jdk/bin/java
It is important that the -vm and the path to the java executeable are specified in two separate lines!

Source: Eclipsepedia: eclipse.ini - Specifying the JVM