Eclipse 启动出现错误 no java virtual machine was found
Posted 一颗神豆
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Eclipse 启动出现错误 no java virtual machine was found相关的知识,希望对你有一定的参考价值。
出现此问题的原因是eclipse找不到javaw.exe的path,打开eclipse.ini文件:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.Java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
在openFile和--launcher.appendVmargs之间添加:
-vm
C:\Program Files\Java\jdk1.8.0_31\bin\javaw.exe
即添加javaw.exe的位置。
以上是关于Eclipse 启动出现错误 no java virtual machine was found的主要内容,如果未能解决你的问题,请参考以下文章
启动TOMCAT就出现错误代码source not found for org.apache.catalina.startup.bootstrap,请高人解答
eclipse中启动tomcat出现错误: 找不到或无法加载主类 org.apache.tomcat.startup.Main
eclipse启动时弹出Failed to create the Java Virtual Machine
eclipse Maven操作出现No compiler is provided in this environment.Perhaps you are running on a JRE rather