Lỗi java was started but returned exit code 13 năm 2024

Home » Newcomers » Newcomers » Java Exit Code 13(Help, Java Exit Code 13) [] Sat, 27 December 2014 19:30

Lỗi java was started but returned exit code 13 năm 2024
Lỗi java was started but returned exit code 13 năm 2024
Caleb Tierney Messages: 1 Registered: December 2014

Junior Member

Hello! I am recently new to coding and such. I got a new desktop a few days ago and downloaded eclipse to begin coding again. However when I try to launch it, I get the Java Exit Code 13 error. I've tried re-installing Java many times but to no success. Below can be found the entire error. Thanks in advance for the help!

  • Lỗi java was started but returned exit code 13 năm 2024
    Attachment: ss+(2014-12-27+at+02.28.33).png (Size: 24.10KB, Downloaded 110338 times) [ is a reply to ] Sat, 09 January 2016 21:32
    Lỗi java was started but returned exit code 13 năm 2024
    Lỗi java was started but returned exit code 13 năm 2024
    Philip Olaniyi Messages: 1 Registered: January 2016

Junior Member

I was having the same problem but I was able to solve it. I have a 64 bits Windows 8.1 OS but all my browsers are 32 bits and I installed a 64 bits java. If you have same, you would have that same problem but what I did was to install both 32 bits and 64 bits java as the java has to be consistent with the browser (as in 32 bits in my case). I installed a 64 bit java because I might change my browser to 64 bits in the future and don't want to be faced with the problem again. I hope this helps someone. Goto Forum:

Current Time: Mon Feb 05 02:23:28 GMT 2024

Powered by FUDForum. Page generated in 0.03261 seconds

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.

For programming help you can checkout AssignmentOverflow.com

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.

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.

Lỗi java was started but returned exit code 13 năm 2024

Comment below if you are getting any difficulty to solve Java was started but returned exit code=13 error in eclipse. I will try to help you.