Fix Java Was Started by Returned Exit Code=1

Sheeraz Gul Aug 01, 2022
Fix Java Was Started by Returned Exit Code=1

This tutorial demonstrates how to solve the Java was started by returned exit code=1 error in Java.

Fix the Java was Started by Returned Exit Code=1 Error

The error Java was Started by Returned Exit Code=1 while using eclipse. This error terminates the currently running JVM by initiating the shutdown sequence.

The reason for this error is that there may be something wrong in the eclipse.ini file. Here is the part of the error message for Java was Started by Returned Exit Code=1:

Java was started but returned exit code=1


This error occurs because the Java Virtual Machine path is not correctly given.

To solve this error, follow the steps below:

  • Make sure the JDK is successfully installed on your system.
  • Open the eclipse.ini file from the Eclipse folder and make sure the path of JVM is correct, as given below:
    C:\Program Files\Java\jdk-17.0.2\bin\server\jvm.dll
  • Make sure the -vm option is before the -vmargs option.

Here is the full setting for the eclipse.ini file:

C:\Program Files\Java\jdk-17.0.2\bin\server\jvm.dll
Author: Sheeraz Gul
Sheeraz Gul avatar Sheeraz Gul avatar

Sheeraz is a Doctorate fellow in Computer Science at Northwestern Polytechnical University, Xian, China. He has 7 years of Software Development experience in AI, Web, Database, and Desktop technologies. He writes tutorials in Java, PHP, Python, GoLang, R, etc., to help beginners learn the field of Computer Science.

LinkedIn Facebook

Related Article - Java Error