How to Fix Java was started but returned exit code=13 Error [Resolved]

Published: 30 March 2015
on channel: Tips 2 Fix
21,724
34

#javaerror #eclipse #javascript
If you are getting an error saying “Java was Started but Returned Exit Code=13” during Eclipse installation, then here is fix for that.
Even I faced this problem during eclipse installation on my windows operating system. After searching on google I found that many of the users facing similar issue with Eclipse. If you are one of them, then here is the solution for the error.
If this method not working for you please try other methods on this website:
http://www.ashout.com/fix-java-starte...
Eclipse is one of the best IDEs for Java and Android developers. There are many issues with Eclipse if it is not configured properly. One of the most common errors with Eclipse IDE is of the java exit code 13. It is common to get an error like Java was started but returned exit code=13.

This Eclipse error is one of the most frustrating bugs to solve if you don’t know the correct method. Here I have enlisted some possible solutions for this error. You have to try all of them one by one.

If you want to hire a java developer, you can make use of online java test.
How to Fix Java was started but returned exit code=13 Error

Method 1:

You may get this error if the versions of java and eclipse do not match. If you have installed 64 bit java jdk on your machine and 32 bit Eclipse IDE or vice versa, then you may get this error.

So, ensure that you have installed both the softwares with their correct versions. If you installed different versions, you will have to uninstall the softwares and install them again with the same version.

Method 2:

There are cases when you want to keep both the 32 bit version and the 64 bit version installed in your machine due to compatibility issue.

When this is the scenario, you need to correctly mention the path of the system variables in the Environment Variable Settings. You have to select either 32 bit or 64 bit in both the softwares i.e., Eclipse and Java JDK.

Suppose you select 32 bit versions, you need to go to the C drive in the JDK Folder of 32 bit version. Once you do that, you can copy the path and set it in the Environment Variable section. You won’t get the same error again.

Method 3:

Another solution to this error is by copying the Eclipse folder in the C:/Program Files folder. For some this may work. However, if it does not work, you should try putting the Eclipse Folder in the C:/Program Files (x86) folder.

We hope that at least one of the above methods will work in your system. You may have to try all the three methods. One of them will surely solve your error message “java was started but returned exit code 13”.

Method 4:

There are a lot of compatibility issues with Java 1.8 and higher versions. So, if you are not able to solve the error with the above methods, you can degrade to java 1.7 or lower version and check if the error is solved or not.

Method 5:

If you have 32 bit and 64 bit versions installed at the same time, you need to set the Eclipse to one version of Java JDK. It should be explicitly set by the user, otherwise the default version of Java will be used which may cause this Error Code 13.

The solution to this the manipulation of the eclipse.ini file. The eclipse.ini is located in the Eclipse folder. Open that file with notepad editor in windows.

You need to add the following code before the line that includes -vmargs in the eclipse.ini file.

-vm

C:\Program Files\Java\jdk1.7.0_40-64\bin\javaw.exe

The second line may be different depending upon version of the java jdk installed in your machine. If you have a 32 bit JDK version, it may be found in Program Files(x86).

Few important points to remember while configuring eclipse.ini file:

1. The Java File’s Path must be Relative Path or Absolute Path. It should not just point to the Java Home Folder.

2. The -vm option and its path should be on a separate line.

3. The -vm option should be before -vmargs option.

Here is the screenshot of an eclipse.ini file.

~-~~-~~~-~~-~
Please watch: "How to Recover Deleted Messages on Messenger 2021 (Retrieve FB Messages)"
   • How to Recover Deleted Messages on Me...  
~-~~-~~~-~~-~


Watch video How to Fix Java was started but returned exit code=13 Error [Resolved] online without registration, duration hours minute second in high quality. This video was added by user Tips 2 Fix 30 March 2015, don't forget to share it with your friends and acquaintances, it has been viewed on our site 21,724 once and liked it 34 people.