tool - java was started by returned exit code=13 talend
Can't start Eclipse-Java was started but returned exit code=13 (20)
I am trying to get my first taste of Android development using Eclipse. I ran into this problem when trying to run Eclipse, having installed version 4.2 only minutes ago.
After first trying to start Eclipse without any parameters to specify the Java VM, I got an error message saying it couldn't find a Java VM called javaw.exe inside the Eclipse folder, so I found where Java was installed and specified that location as the parameter in the shortcut's target. Now I get a different error, "Java was started but returned exit code=13".
Similar questions seem to indicate that it's a 32-bit/64-bit conflict, but I'm 99% positive that I downloaded 64-bit versions of both Eclipse and Java (RE 7u5), which I chose because I have 64-bit Windows 7.
- If anyone knows how to confirm that my Eclipse and Java are 64-bit, that'd be appreciated.
- If you think my problem is a different one, please help!
- Please speak as plainly as you can, as I am totally new to Eclipse and Java.
Shortcut Target: "C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\eclipse.exe" -vm "C:\Program Files (x86)\Java\jre7\bin\javaw.exe"
Full error code...:
Java was started but returned exit code=13 C:\Program Files (x86)\Java\jre7\bin\javaw.exe -Xms40m -Xmx512m -XX:MaxPermSize=256m -jar C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar -os win32 -ws win32 -arch x86_64 -showsplash C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins\org.eclipse.platform_4.2.0.v201206081400\splash.bmp -launcher C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\eclipse.exe -name Eclipse --launcher.library C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v201205221813\eclipse_1503.dll -startup C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar --launcher.overrideVmargs -exitdata 1e30_5c -vm C:\Program Files (x86)\Java\jre7\bin\javaw.exe -vmargs -Xms40m -Xmx512m -XX:MaxPermSize=256m -jar C:\Program Files\Eclipse-SDK-4.2-win32-x86_64\eclipse\\plugins/org.eclipse.equinox.launcher_1.30v20120522-1813.jar
The issue was fixed by doing the following steps.
Eclipse finds the JAVA executables from 'C:\ProgramData\Oracle\Java\javapath'
The folder structure will contain shortcuts to the below executables,
For me the executable paths were pointing to my Program Files(x86) (home for 32 bit applications) folder location
I corrected it to Program Files (which homes 64-bit applications) and the issue got resolved
Please find the screenshot for the same.
Adding vm argument to .ini file worked for me
-vm C:\Program Files\Java\jdk1.7.0_65\bin\javaw.exe
For me the solution was to go into (on Windows 8.1):
System > Advanced system setting > Environment Variables
Under 'System variables' in the 'Path' variable there was the following first:
I removed this and Eclipse worked again!
I got this error and found that my PATH variable (on Windows) was probably changed. First in my PATH was this entry:
...and Eclipse ran
"C:\ProgramData\Oracle\Java\javapath\javaw" - which gave the error. I suspect that this is something that came along with an installation of Java 8.
I have several Java versions installed (6,7 and 8), so I removed that entry from the PATH and tried to restart Eclipse again, which worked fine.
If it's doesn't work for you, you'll need to upgrade your JDK (to the Java versions - 8 in this case).
I had a similar error after installing Java 8 on my Windows 7 system, 64 bit system.
Changing environment variables, etc. did not help. So I tried to remove the Java Update 8, but that too did not help. Downloading and installing the 64-bit version of Java 8 SDK fixed my problem. I hope this helps.
I had the same issue after I upgraded my JDK from 1.7 to 1.8. I'm using Eclipse 4.4 (Luna). The error is gone after I degrade JDK to 1.7.
I had the same issue, Java was started but returned exit code=13.
My solution was to create an environment variable to Windows properties variable name = PATH variable value = C:\Program Files\Java\jdk1.7.0_02\bin, not to C:\Program Files (x86)\Java\jre7\bin.
Next I added a line to file
eclipse.ini → C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe.
That worked for me.
I had this issue. I installed Java 8 update 25 via Chrome, and therafter attempting to start Eclipse gave the mentioned error.
Uninstalled that update, and Eclipse works again.
I had this message when I had forgot to install the JDK.
I tried some of the solutions, but not worked for me.
Finally, I found another way, ...
Go to Environment Variables → System Variables
Set C:\Program Files\Java\jdk1.7.0_02\bin\javaw.exe to the path in the system variables.
Try it. It worked for me...
I tried the following solution:
I created a shortcut of javaw.exe from path C:\Program Files\Java\jdk1.7.0_71\bin and pasted it into the path C:\ProgramData\Oracle\Java\javapath.
After that, I launched Eclipse, and it worked for me.
If you have recently installed Java 8 and uninstalled Java 7, install JDK 8 and retry.
If you install a 64-bit Eclipse version on a PC with a 32-bit JRE this is guaranteed to occur.
So the solution is quite straightforward: You need to synchronise them by updating either one. This shall happen when downloading Oracle Fusion middleware and Eclipse expects a 32-bit environment while your JRE is 64-bit and your JAVA home is pointing to a 64-bit JDK.
It turned out I only had the 32-bit Java runtime installed.
C:\Program Files (x86)\Java\jre1.8.0_45\
All Eclipse really wanted was for me to install the 64-bit Java runtime. <= SOLVED
Java SE Runtime Environment 8u45 jdk-8u45-windows-x64.exe
Confirm your installation by checking you now have this folder C:\Program Files\Java\jre1.8.0_45\
-vm C:\Program Files (x86)\Java\jre7\bin\javaw.exe
The best answer here is too long. I cannot comment so I added my answer.
- Go here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Download the latest SDK (of course for x64 if your computer is x64)
- Install it
- Now the party is finished, and it's time to work with Eclipse ;)
The solution is simple: Put the "eclipse" folder on "C:/Program Files". If it does not work, put it in "C:/Program Files (x86)".
There are working combinations of OS, JDK and Eclipse bitness. In my case, I was using a 64-bit JDK with a 32-bit Eclipse on a 64-bit OS. After downgrading the JDK to 32-bit, Eclipse started working.
Kindly use one of the following combinations.
- 32-bit OS, 32-bit JDK, 32-bit Eclipse (32-bit only)
- 64-bit OS, 32-bit JDK, 32-bit Eclipse
- 64-bit OS, 64-bit JDK, 64-bit Eclipse (64-bit only)
This might happen if you have several versions of Java on the same machine. To fix this I did the following:
- Checked the current JAVA_HOME value. In Windows, echo
- Accessed the route of javaw.exe
- Replaced the shortcuts pointing to the Java home location.