We all know about the error whenever starting eclipse “Java was started but returned exit code=13”. That can not start Eclipse and its solutions s well. Another same error is “java started but returned exit code 1″. And the same error we can see along with oxygen or neon. “java started but returned exit code 13 eclipse neon“. These are the common errors that we see a lot in our development process. Please see the following errors whenever starting up the eclipse after you double click the eclipse.exe file in the eclipse location. Just read this article to know all about Java was Started via Returned Exit Code=1. Let’s start!
So after fixing exit code 13 and JVM not found are you guys still getting the exit code 1 error? Then probably you have done something really wrong. First, you have to check that if you have the latest JDK(Java Development Kit) Downloaded? And what is actually the architecture of the PC on which you guys are running is that 64-bit or 32-bit as well? And is it also the same as the JDK version? Since it should be the same. Have you guys set the path in the environment variable such as shown in the fix JVM not found an error? You have to do all of the above before continuing.
Java was Started by Returned Exit Code=1
System.exit code basically terminates the currently running Java virtual machine through initiating its shutdown sequence. This method never returns normally and also the argument serves like a status code.
- Head to the eclipse folder and right-tap on the eclipse.ini and then choose edit.
- Now just 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 just use the one in C:\Windows\System32
NOTE: The above fix also fixes Eclipse error: Java was also started but returned exit code=2
Important: Make sure, that the
-vm option basically occurs before the
-vmargs command. Because every command that occurs after -vmargs is actually passing directly t the JVM.
Each and everything after is actually passing directly to the JVM. If you guys don’t know where the eclipse.ini file is: regularly it is actually in the folder of your eclipse.exe.
Well, That is all from my side. If you want to know more about this article or have any queries. Then feel free to ask me anything in the comments section below.
Have a Good Day!