Eclipse
---------------------------
Java was started but returned exit code=13
C:\ProgramData\Oracle\Java\javapath\javaw.exe
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jarD:\java\eclipse-jee-oxygen-R-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os win32
-ws win32
-arch x86_64
-showsplash D:\java\eclipse-jee-oxygen-R-win32-x86_64\eclipse\\plugins\org.eclipse.epp.package.common_4.7.0.20170620-1800\splash.bmp
-launcher D:\java\eclipse-jee-oxygen-R-win32-x86_64\eclipse\eclipse.exe
-name Eclipse
--launcher.library D:\java\eclipse-jee-oxygen-R-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.500.v20170531-1133\eclipse_1624.dll
-startup D:\java\eclipse-jee-oxygen-R-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.appendVmargs
-exitdata 10d4_60
-product org.eclipse.epp.package.jee.product
-vm C:\ProgramData\Oracle\Java\javapath\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar D:\java\eclipse-jee-oxygen-R-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
---------------------------
确定
---------------------------
以上为打开Eclipse时所报的错.
在判断错误的时候,首先要检查是否有jdk和jre的路径(加粗的地方为路径);
这个报错由于发现没有jdk和jre的路径,所以我们需要在Eclipse的安装目录中配置jre文件;
具体操作步骤如下:
1、在桌面上右击Eclipse找到文件存放位置,即为Eclipse的安装位置,将找到的jre文件复制到此处即可;
2、找到jdk的安装目录,复制jre到Eclipse的安装目录,需要注意的是,当复制的jre文件夹名字为jre_1.8.0_31时,需要将文件夹名字改为jre;
3、重新启动Eclipse即可;