Eclipse: Java was started but returned error code=13 [duplicate]
Solution 1:
This error occurs because your Eclipse version is 64-bit. You should download and install 64-bit JRE and add the path to it in eclipse.ini
. For example:
...
--launcher.appendVmargs
-vm
C:\Program Files\Java\jre1.8.0_45\bin\javaw.exe
-vmargs
...
Note: The -vm
parameter should be just before -vmargs
and the path should be on a separate line. It should be the full path to the javaw.exe
file. Do not enclose the path in double quotes ("
).
If your Eclipse is 32-bit, install a 32-bit JRE and use the path to its javaw.exe
file.
Solution 2:
Like Vito mentions, this error occurs after Java updates as the path:
C:\ProgramData\Oracle\Java\javapath
is added to the Path
environment variable, causing Eclipse to run using the wrong java version.
To fix the problem:
1) Right-click on Computer
and choose Properties
.
2) Click Advanced system settings
3) Click Environment Variables...
4) Find the Path
variable in the System variables
section.
5) Choose it and click Edit...
6) Find and delete the above mentioned path.
This fixed it for me. I should mention that I already have the path:
c:\Program Files\Java\jdk1.7.0_21\bin
in the Path
variable, but the new path was added to the beginning of the Path
variable and therefore resolution would use that path first.
Solution 3:
This is caused when java is updated. You have to delete in environement path : C:**ProgramData\Oracle\Java\javapath**
Solution 4:
My solution: Because all others did not work for me. I deleted the symlinks at C:\ProgramData\Oracle\Java\javapath. this makes eclipse to run with the jre declared in the PATH. This is better for me because I want to develop Java with the JRE I chose, not the system JRE. Often you want to develop with older versions and such
Solution 5:
I also faced the error code when i upgraded my java version to 1.8. The problem was with my eclipse.
My jdk which was installed on my system is of 32 - bit and my eclipse was of 64 - bit.
So solve this problem i downloaded the 32 - bit eclipse.
IMO this Architecture miss match problem
Plese match your architecture type of JDK and eclipse.