前些日子,我之前安装的Eclipse突然就出现问题了,考虑那些天更新过jre,也装过其它软件,不知问题出在哪里,今天尝试用Google搜索问题,终于让我找到了解决方法,不过答案在YouTube上,相信很多人无法看,所以,就将其方法帖在下面,希望对大家有用:
How To Fix Eclipse Error - Java was started but returned exit code 13
So finally you have installed JDK and Set the path according to all the tutorials [including mine:P] but still not able to run eclipse because of a stupid error: Java was started but returned exit code=13
Whats is this heck? How diffcult it can be to start eclipse? Dont you worry because this is the last thing which you have to do and after that everything will work perfectly fine. Here is the fix:
1) Go th the eclipse installation folder or where you have extraced it from the zip file.
2) Search for the eclipse.ini file which would be present in the parent folder of the eclipse.
3) Right click on the .ini file and select edit.
4) Now put the following code as shown in the tutorial:
-vm
C:/Program File/Java/jdk1.7.0_21/bin/javaw.exe
5) Hit the save button and ypu are done.
Now run eclipse and ypur hard work to run eclipse have finally piad off, go and start working on eclipse for various projects.
Lets check is it really working? :P Yaiyeee its working finally !!!!
How to fix Java Error: Java was started but returned exit code 1
So after fixing exit code 13 and JVM not found are you still getting the exit code 1 error? Then probably you have done something wrong. First check that if you have the latest JDK(Java Development Kit) Downloaded? And what is the architecture of the PC on which you are running is that 64-bit or 32-bit? And is it same as the JDK version? because it should be same. Have you set the path in environment variable like shown in the JVM not found video? Do all of the above before continuing.
1)Go to the eclipse folder and right click on the eclipse.ini and select edit.
2)Now Add the following lines:[path of the jdk should be where you have installed jdk
-XX:-UseCompressedOops
-vm
C:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll
Don't use the one in C:\Windows\System32
NOTE: The above fix also fixes Eclipse error : Java was started but returned exit code=2
[Notes:
In some cases it still not work, then please add the above lines before -vmargs like in the video]
Lets see how does it work out? Finally it has worked out, now go and make the best app possible!
Thanks for watching, please subscribe to how to channel for more tutorial!
|
|