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:
/opt/jdk/bin/java
eclipse.ini
-vm /opt/jdk/bin/java
-vm
java
Source: Eclipsepedia: eclipse.ini - Specifying the JVM