Fix Java started but returned exit code 1: So after troubleshooting exit code 13 and the JVM was not found, do you still get exit code 1 error? So you've probably done something wrong. First, check that if you have the latest JDK (Java Development Kit) downloaded ... And what is the architecture of the computer you are running on is 64 or 32 bits? And is it the same as the JDK version? because it should be the same. Have you set the path in the environment variable as shown in the "fix JVM not found" error? Do all of the above before continuing.
The system exit code terminates the currently running Java virtual machine by initiating its shutdown sequence. This method never returns normally and the argument serves as a status code.
Fix Java started but returned exit code 1
1) Go to the eclipses folder and right click on the eclipse.ini and select edit.
2) Now add the following lines: [the path of the jdk must be where you have installed the jdk]
-XX: -Use compressed -vm C: N- Program FilesN- JavaN-jdk1.7.0_21N-Blog server
Don't use the one from C: NWindowsN-System32
NOTE: The above answer also fixes the Eclipse error: Java was started but returned exit code = 2 Important: Make sure the -vm option occurs before the -vmargs command. Because every command that comes after -vmargs is passed directly to the JVM.
Everything that follows goes directly to the JVM. If you don't know where the eclipse.ini file is: it is usually in your eclipse.exe folder.
Let's see how it works. In short, it has worked, now go and make the best viable app!
That's all that people who have successfully learned how to fix java started but returned exit code 1, but if you still have questions about this article feel free to ask me in the comments section.