如果环境变量里已经配置了JAVA_HOME,但是在启动的时候还会提示下面的信息;
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
jvm.dll"
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
jvm.dll"
原因可能是因为myeclipse是从别的电脑上拷贝过来的,配置文件里面的路径跟本地路径比匹配导致的。尝试修改myeclipse.ini文件解决该问题:
#utf8 (do not remove)
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201102231800
-install
D:\MyEclipse 9.0\MyEclipse 9
-vm
D:\MyEclipse 9.0\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
-configuration
D:\MyEclipse 9.0\MyEclipse 9\configuration
-vmargs
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
-Dgenuitec.honorDevMode=true
-Dosgi.dev=true
将配置文件中上述标红的路径部分替换成本地实际路径,重启myeclipse即可。