Background: The machine is equipped with JDK7 and 82 versions, the command line to view the Java version is 1.7, and neon to the JDK version of the requirement is 1.8, do not want to modify the system default JDK version.
Workaround: Locate the Eclipse.ini file under the Eclipse installation directory and add the following parameters:
-vm
D:\java\jdk1.8\bin
Full file:
-startupplugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar--launcher.libraryplugins/ org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401. v20161122-1740-productorg.eclipse.epp.package.jee.product--launcher.defaultactionopenfile-showsplashorg.eclipse.platform- -launcher.defaultactionopenfile--launcher.appendvmargs-vmd:\java\jdk1.8\bin- vmargs-dosgi.requiredjavaversion=1.8-xx:+useg1gc-xx:+usestringdeduplication-dosgi.requiredjavaversion=1.8- xms256m-xmx1024m
ECLIPSE Specifies JDK version