in eclipse.ini (the file next to the eclipse executable) add the full path to the java / javaw executable in your JDK:
on * x (possibly including MacOS):
-vm /path/to/jdk/bin/java
in Win *:
-vm C:/path/to/jdk/bin/javaw.exe
or -vm C: \ path \ to \ JDK \ Bin \ javaw.exe
Make sure the -vm is before any -vmargs !
source share