Fix 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 the same as the JDK version? because it should be the same. Have you set the path in the environment variable like shown in the fix JVM not found error? Do all of the above before continuing.
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 was started but returned exit code 1
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
Important: Make sure, that the -vm
option occurs before the -vmargs
command. Because every command which occurs after -vmargs is passed directly t the JVM.
Everything after is passed directly to the JVM. If not, Fix Could Not Create the Java Virtual Machine in Windows 10. If you don’t know where the eclipse.ini file is: regularly it is in the folder of your eclipse.exe.
Let’s see how does it work out? Finally, it has worked out, now go and make the best app possible!
That’s it people you have successfully learn how to fix java was started but returned exit code 1 but if you still have queries regarding this post feel free to ask me in the comment’s section.
I have the same error exit_code = 1 after following the steps :
-vm
C:\Program Files\Java\jdk1.7.0_21\jre\bin\server\jvm.dll
try deleting the ini file or the eclipse config file. it will work but before that have a back up of that file
Thanks man, that works for Me
thanks sir it works for me
I too had this issue, but it was simply because I mistakenly downloaded and installed a 32 bit Java version on a 64 bit machine. Uninstalling the 32 bit version and installing the 64 bit version solved the issue. My stupid mistake…
It worked for me, thanks lek
Thanks
deleting that file worked for me thanks
-vm option occurs before the -vmargs worked for me. Thanks
It worked for me finally my file look like below ** MAKE SURE You copied that vm argument before vmargs
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
-product
org.eclipse.epp.package.dsl.product
-showsplash
org.eclipse.epp.package.common
–launcher.defaultAction
openFile
–launcher.defaultAction
openFile
–launcher.appendVmargs
-vm
C:\Program Files\Java\jdk1.8.0_201\jre\bin\server\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
–add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx2024m
–add-modules=ALL-SYSTEM
-XX:-UseCompressedOops
deleting the file works for me
–launcher.defaultAction
THIS WORKS FOR ME
openFile
-vm
C:\Program Files\Java\jdk-11\bin\server\jvm.dll
–launcher.appendVmargs
-vmargs
-Xms256m
-Xmx2048m
Worked for me, thanks man
Thanks this worked out for me
It worked, thanks a lot. Keep up the good work 🙂