Specifies the jdk version in eclipse and jdk in eclipse.
Background: The machine is installed with jdk 7 and 8. In the command line, the java version is 1.7, while neon requires jdk 1.8, and does not want to modify the system's default jdk version.
Solution: Find the eclipse. ini file in the eclipse installation directory,Add the following parameters:
-Vm
D: \ java \ jdk1.8 \ bin
Complete 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