java was started but returned exit code =-1

Posted 友 点胡说八道

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java was started but returned exit code =-1相关的知识,希望对你有一定的参考价值。

Myeclipse报错java was started but returned exit code =-1,如图:

报错原因:java虚拟机的路径不对,因为默认安装MyEclipse时会自带一个java虚拟机,如果环境变量中已经安装了,路径需要改为安装的,可以在cmd中输入

java -verbose

查看jdk路径

解决方法:把MyEclipse启动配置文件ini中找到Vm这一行。Vm指java虚拟机,Vm配置那一行换成你安装的java虚拟机,如果你没安装过Java环境可以马上安装一个,如我则这么写:

 

以上是关于java was started but returned exit code =-1的主要内容,如果未能解决你的问题,请参考以下文章

Java was started but returned exit code=13

java was started but return exit code=-805306369

MyEclipse:Java was started but returned exit code=-1

Java was started but returned exit code=13 问题解决

Java was started but returned exit code=13

java was started but returned exit code =13