启动eclipse后出现“没有找到java虚拟机”错误[duplicate]

时间:2021-09-01 10:57:20

This question already has an answer here:

这个问题已经有了答案:

When running eclipse, I get this error. "...no java virtual machine was found...". I have searched many threads and post and have set the JAVA_HOME system variable and virtual machine address in eclipse.ini as the posts said but still get that error. I'm really stuck and don't know what to do. please help me

在运行eclipse时,我得到了这个错误。“…没有找到java虚拟机……我搜索了许多线程和帖子,并在eclipse中设置了JAVA_HOME系统变量和虚拟机地址。就像帖子里说的,但还是会有错误。我真的被困住了,不知道该怎么办。请帮我

Edit:
here is my eclipse.ini file"

编辑:这是我的eclipse。ini文件”

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.7.0_25\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v21.0.0-531062

After changing the position of -vm line to the current position I get this new error:

将-vm线的位置更改为当前位置后,得到新的错误:

 "java was started but returned exit code=13
 -Dosgi.requiredJavaVersion=1.6"

2 个解决方案

#1


0  

Eclipse does not use the JAVA_HOME environmental variable. Ensure that the -vm flag in eclipse.ini points to a valid JVM

Eclipse不使用JAVA_HOME环境变量。确保eclipse中的-vm标志。ini指向一个有效的JVM。

#2


0  

I ran into something similar with eclipse after installing net beans. None of the fixes that I had found seemed to work. What I ended up having to do is uninstall all versions of Java and then re-installing them. I was running windows 8.

在安装了netbeans之后,我遇到了与eclipse类似的问题。我发现的所有修复措施似乎都不起作用。我最后要做的就是卸载所有Java版本,然后重新安装它们。我正在运行windows 8。

#1


0  

Eclipse does not use the JAVA_HOME environmental variable. Ensure that the -vm flag in eclipse.ini points to a valid JVM

Eclipse不使用JAVA_HOME环境变量。确保eclipse中的-vm标志。ini指向一个有效的JVM。

#2


0  

I ran into something similar with eclipse after installing net beans. None of the fixes that I had found seemed to work. What I ended up having to do is uninstall all versions of Java and then re-installing them. I was running windows 8.

在安装了netbeans之后,我遇到了与eclipse类似的问题。我发现的所有修复措施似乎都不起作用。我最后要做的就是卸载所有Java版本,然后重新安装它们。我正在运行windows 8。