ItGo.me Focus on IT Recommend

Home > android - Can't start Eclipse - Java was started but returned exit code=13

android - Can't start Eclipse - Java was started but returned exit code=13

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
java android eclipse windows
|
  this question
edited Jul 5 '16 at 8:15 Arjun saini 2,382 2 5 24 asked Jul 12 '12 at 22:23 Ben E. 3,225 3 7 7      "Program Files (x86)" is where Windows tends to put 32-bit stuff these days. I'm not sure exactly how to check your java version, but you can always uninstall and download it fresh. –  DGH Jul 12 '12 at 22:26      See also stackoverflow.com/questions/4945178/… and stackoverflow.com/questions/6166795/… and stackoverflow.com/questions/8230853/… –  DNA Jul 12 '12 at 22:26      @user1522092 How the hell did you access the error message text? On my PC it can't be copied, I had to type it on the keyboard... –  Tomáš Zato Sep 17 '15 at 14:34

 | 

36 Answers
36

1 2 next ---Accepted---Accepted---Accepted---

Your version of Eclipse is 64-bit, based on the paths and filenames. However, the version of Java that it's picking up is 32-bit, as indicated by where it is coming from, indicated on this line:

-vm C:\Program Files (x86)\Java\jre7\bin\javaw.exe

Program Files (x86) is the folder where 64-bit Windows places 32-bit programs.

Program Files is the folder where 64-bit Windows places 64-bit programs.

This can happen when a system has more than one JVM installed, as is often the case on Windows 64-bit (for example, the JRE download page uses the bit-ness of the browser to determine what bit-ness download to offer you, and many people use(d) 32-bit browsers even though they run 64-bit Windows).

The best way to fix this, assuming you do in fact have 64-bit JRE or JDK on your system, is to specify in eclipse.ini exactly which JVM you want it to use. The instructions are detailed in the Eclipse wiki page, but basically you have to specify the -vm option in the ini file - make sure to read the wiki page carefully as the format is very specific.

Specifying the JVM path in eclipse.ini is strongly recommended because doing so isolates Eclipse from any potential changes to your system PATH that some program installers might make (I'm talking to you, Oracle!).

Another option would be to download and use 32-bit Eclipse instead of 64-bit, but it's still strongly recommended to specify the path to the JVM in eclipse.ini.

Left for historical reference:

To check your version of Java, run

  java -version 

in a console (command prompt). On Windows 7 with 64-bit Java 6 I get:

  java version "1.6.0_27"
  Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
  Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)

Note the 3rd line, which shows that this is a 64-bit version.

On a 32-bit version you'll get something like:

  Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing) 

|
  this answer
edited Apr 11 '16 at 7:44 answered Jul 12 '12 at 22:29 DNA 29.6k 8 58 105      Have ticked. Didn't even know how to resolve a thread before you mentioned the tick - such a noob! Thanks for bearing with me. –  Ben E. Jul 12 '12 at 23:15 3   Well 3rd comment helped me. I didn't understand what the hell is "Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)". Now i know i have to download java-64bit –  Ozan Atmar Jun 24 '14 at 11:24 1   so how do we get Eclipse to use the proper Java executable / version? –  mmcrae Aug 24 '15 at 14:19 1   The answer shows how to find out the installed Java version. What is missing is what Java version is required! –  ingomueller.net Aug 25 '15 at 12:04 1   @ingomueller.net the bit required depends on the eclipse bit downloaded. –  Ungeheuer Sep 4 '15 at 0:22  |  show more comments

I got this error and found that my PATH variable (on Windows) was probably changed. First in my PATH was this entry:

C:\ProgramData\Oracle\Java\javapath

...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.

Instructions on how to edit PATH variable


|
  this answer
edited Dec 30 '16 at 23:37 Peter Mortensen 10.9k 15 75 109 answered Nov 3 '14 at 7:20 mortensi 2,132 1 6 8      I just found this problem and noticed this same path prepended to my PATH env variable. I just installed VirtualBox yesterday, so I assume that is the culprit. –  PolyMesh Nov 25 '14 at 5:01 6   I had the same problem and tried different options but only solved it after removing entry "C:\ProgramData\Oracle\Java\javapath" from PATH variable. Good catch! –  Pablo Nov 26 '14 at 7:29 3   Great Catch !!! Guys check your Env.PATH Variable and remove this C:\ProgramData\Oracle\Java\javapath;...It is added after JRE8 update I guess. –  Chinmoy Jan 2 '15 at 14:51      I arrived at this same problem the same way mtyson answered separately here, but solved it with this answer by mortensi. Thanks! –  cellepo Jan 16 '15 at 16:40 1   Why would you delete the entry when you can just point it to the correct directory instead? –  b1nary.atr0phy Aug 5 '16 at 5:14  |  show more comments

If you have recently installed Java 8 and uninstalled Java 7, install JDK 8 and retry.


|
  this answer
answered Oct 30 '14 at 14:06 Jaswanth Kumar 1,914 1 8 16 10   This worked for me. I installed Java 8 (I had J7) but I forgot to install the JDK8. So I did it, and "voilà". Thanks! –  Shudy Feb 27 '15 at 9:59      This worked for me after a Java 8 install, even though I never uninstalled any other versions of java. –  Charles J. Daniels Mar 14 '15 at 12:31 1   Mansour - With Java 8, Oracle bundled the uninstall of prior versions with the install. If you selected that option on install, uninstalling may leave you with nothing. –  WhyGeeEx Jun 9 '15 at 16:58      One line clear answer. Thanks! –  milan manvar Jul 26 '15 at 11:30      I refuse to install a SDK when I actually only need a runtime. –  ChristophK Jan 29 '16 at 17:48  |  show more comment

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:

C:\ProgramData\Oracle\Java\javapath;

I removed this and Eclipse worked again!


|
  this answer
answered Dec 3 '14 at 7:03 RustyIngles 1,603 12 19      Thanks this worked for me. –  David Prun Jan 5 '15 at 18:42      This worked for me after trying several thing. Pretty weird! –  Lazy Ninja Feb 9 '15 at 6:06 1   Worked on Windows seven too, it seems that the installation of Java 8 is messing up with environment variables. –  boumbh Feb 23 '15 at 8:07      This worked for me (Win7 x64). I suspect this entry was added after installing a 32bit jre 8 for Firefox. –  avatastic Mar 5 '15 at 11:50      Thanks man! I have OS(win7 x64) and this solution prompted eclipse to start! –  KostasA Mar 8 '15 at 17:40  |  show more comments

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.


|
  this answer
edited Dec 30 '16 at 23:18 Peter Mortensen 10.9k 15 75 109 answered Jan 23 '13 at 9:22 Katusepi 591 4 2 5   I had updated java, so the java update changed the env. variable value, fixed env. var. value, so it started working. –  Mohit Nov 6 '14 at 6:33 4   Thanks Mohit, I too had updated java of firefox and path variable got updated as C:\ProgramData\Oracle\Java\javapath; .Hence ,eclipse wasn't getting initialised. Thanks again. –  farheen Nov 10 '14 at 11:20 1   Thanks Katusepi... It worked like a charm in my case... But i wonder how do the environment variable change with out my(administrator) permission in windows.. !!! –  Kannan_SJD Jan 13 '15 at 5:58      same problem with path not going to the right place –  TheZuck Apr 18 '15 at 19:25      Thanks, this saved me a lot of time. On my side I had to install the 64bit jdk and the change the environment variable that the updates had changed. –  desw Apr 27 '15 at 8:19  |  show more comments

The issue was fixed by doing the following steps.

  1. Eclipse finds the JAVA executables from 'C:\ProgramData\Oracle\Java\javapath'

  2. The folder structure will contain shortcuts to the below executables,
    i. java.exe
    ii. javaw.exe
    iii. javaws.exe

  3. For me the executable paths were pointing to my Program Files(x86) (home for 32 bit applications) folder location

  4. I corrected it to Program Files (which homes 64-bit applications) and the issue got resolved

Please find the screenshot for the same.


|
  this answer
edited Dec 30 '16 at 23:41 Peter Mortensen 10.9k 15 75 109 answered Dec 13 '14 at 18:20 dreamdeveloper 803 6 13      Thanks Faizan :-) –  dreamdeveloper May 20 '15 at 16:52      That means it was a 32bit vs 64bit issue as mentioned in top answer. :) Cheers though –  JuliandotNut Jul 2 '15 at 18:36      This is the best answer –  user1097940 Aug 11 '15 at 7:06 4   how did you correct it to **Program Files**? –  mmcrae Aug 24 '15 at 14:18 1   How do I change it to program files 64 bit ? I right click java.exe > properties > shortcut tab. The target field cannot be changed. –  stack1 Sep 22 '15 at 17:54  |  show more comments

The strangest fix ever. Look at your Eclipse path, and make sure you do not have strange characters (like !, #, and @). It worked for me.


|
  this answer
edited Dec 30 '16 at 23:16 Peter Mortensen 10.9k 15 75 109 answered Dec 4 '12 at 10:50 bello 191 1 2 1   Thanks that was the problem, this is a strange fix but it works –  Bjorn Feb 18 '14 at 14:57 1   I tried all that stuff with the enviroment variables and nothing.. until I read this. Thank you !! –  ntrx Mar 13 '15 at 5:25      Is there an open issue for this? –  roded Feb 3 '16 at 8:46

 | 

Adding vm argument to .ini file worked for me

-vm
C:\Program Files\Java\jdk1.7.0_65\bin\javaw.exe

|
  this answer
answered Mar 16 '15 at 13:52 TastyCode 2,557 3 20 35      your solution worked for me –  Devang Solanki Mar 23 '15 at 10:37      My case was Tomcat server (within eclipse) did not get stopped properly from the earlier run. So, I had to kill eclipse from Windows Task Manager. Thereafter eclipse was not starting any more. When I added this solution, it started working again. Seems strange, but this was indeed the fix. –  user1880957 Apr 6 '15 at 5:52

 | 

I had this message when I had forgot to install the JDK.


|
  this answer
answered Feb 21 '15 at 13:49 Patricia Beier 1,315 1 9 21 1   How can eclipse say java was started then if its not on your machine? –  amit_kumar Oct 20 '15 at 13:12      It works for me :) After normal update to 1.8 i havent install JDK manualy. Now everything works fine. –  Michał Szałapski Dec 11 '15 at 18:17

 | 

I uninstalled Java update 25, and the issue was solved.


|
  this answer
edited Dec 30 '16 at 23:27 Peter Mortensen 10.9k 15 75 109 answered Oct 21 '14 at 6:22 Shetty's 147 1 8 17      wondering how i update my version some browser plugin make me do so!!! #Java –  Milson Oct 21 '14 at 7:04 3   That is because probably, you are using jdk 1.7, and browser plugin have installed java 8 update 25, for videos. If you upgrade your jdk to 1.8, in that case this error will go away. Either upgrade the jdk, or uninstall the plug-in. Strange solution. –  Pritish Shah Nov 8 '14 at 15:33      I updated my java version because a browser plugin needed the update. It did not work anyways and I ended up not having Eclipse fully functional. That sucked! –  Vinícius Barros Nov 23 '14 at 21:05

 | 

The solution is simple: Put the "eclipse" folder on "c:/Program Files". If it does not work, put it in "c:/Program Files (x86)".


|
  this answer
edited Dec 30 '16 at 23:16 Peter Mortensen 10.9k 15 75 109 answered Oct 25 '12 at 1:44 Ahmmad Ismail 851 1 8 22      This solution as well as removing full path and only using, "Javaw.exe" worked for me. –  Steve Kline Mar 12 '14 at 0:17      Beware of this solution if you are working on a managed windows instance. Most IT/Sec domains have the Program Files directory tree locked down for write access which fubars eclipse. –  Stevko Aug 1 '14 at 16:34

 | 

A clean reinstall of the Java JDK did the trick in my case. I am running Eclipse 4.4 (Luna) like a charm now.


|
  this answer
edited Dec 30 '16 at 23:51 Peter Mortensen 10.9k 15 75 109 answered Feb 13 '15 at 12:46 Benjamin Todts 628 9 20

 | 

I had this issue. I installed Java 8 update 25 via Chrome, and therafter attempting to start Eclipse gave the mentioned error.

Recommend:android - Eclipse ADT: Java was started but returned exit code=13

om ADT won't start Every time I'm getting this error: ---------------------------Eclipse---------------------------Java was started but returned exit code=13C:\Program Files (x86)\Java\jre7\bin\javaw.exe-Dosgi.requiredJavaVersion=1.6

Uninstalled that update, and Eclipse works again.


|
  this answer
answered Jan 6 '15 at 22:58 mtyson 2,989 5 34 63

 | 

Make sure you don't have special characters (%, $, #, etc.) at Eclipse path.


|
  this answer
edited Mar 16 '15 at 9:03 Smi 8,365 6 33 55 answered May 27 '13 at 10:15 Asokan 59 1 3      This was it for me! I had my eclipse folder on the desktop and the active user had a special character in their user name. –  Dave C Jun 24 '14 at 23:13      THAT WAS IT FOR ME TOO! WOW! –  MatrixAndrew Jan 12 '16 at 17:17      This is already covered by bello's answer, posted about 1/2 year prior. –  Peter Mortensen Dec 30 '16 at 23:22

 | 

I had the same problem. I was using Windows 8 with a 64-bit OS. I just changed the path to Program Files (x86) and then it started work. I put this line in the eclipse.ini file:

-vm
 C:\Program Files (x86)\Java\jre7\bin\javaw.exe

|
  this answer
edited Dec 30 '16 at 23:25 Peter Mortensen 10.9k 15 75 109 answered Aug 7 '14 at 5:37 Pir Fahim Shah 5,453 1 42 49      I'm 64bit. When I installed jdk1.8.0_20 for 64 bits, it requested me to reboot. I did. It left a JRE in Program Files (x86) and just a DLL in the 64bit Program Files (no javaw.exe), so I pointed the -vm to the Program Files (x86). I still got code=13. With this ashout.com/fix-java-started-returned-exit-code13-eclipse I realized bit versions "should" match yes or yes. So I run the very same JDK installer for a second time. Surprisingly it deployed new files that were missing the first time. Now it works with -vm in C:\Program Files\Java\jdk1.8.0_20\bin\javaw.exe. –  Xavi Montero Oct 7 '14 at 10:43      Is that really two lines in file eclipse.ini? –  Peter Mortensen Dec 30 '16 at 23:26      @PeterMortensen yes, did yu try –  Pir Fahim Shah Dec 31 '16 at 13:02

 | 

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.


|
  this answer
edited Dec 30 '16 at 23:30 Peter Mortensen 10.9k 15 75 109 answered Oct 23 '14 at 8:49 George Papatheodorou 941 8 18      My case indeed. The mismatch between 32 and 64 bits is classic. I didn't even remember whether or not I downloaded a 64 bits version until I use java -version –  Maximiliano Rios Jul 22 '15 at 6:51

 | 

I tried some of the solutions, but not worked for me.

Finally, I found another way, ...

Go to Environment VariablesSystem 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...


|
  this answer
edited Dec 30 '16 at 23:39 Peter Mortensen 10.9k 15 75 109 answered Nov 24 '14 at 6:35 Kandy 339 3 14 1   I did all other solutions, but they didn't work for my windows 10. Anyway, your solution worked for me and saved my many hours.... SALUTE !!!. Thanks so much. –  Débora Sep 24 '15 at 18:43

 | 

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

http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html

Confirm your installation by checking you now have this folder

    C:\Program Files\Java\jre1.8.0_45\

|
  this answer
edited Dec 31 '16 at 0:01 Peter Mortensen 10.9k 15 75 109 answered Jun 22 '15 at 2:51 hamish 647 7 11      maybe you meant "jre-8u45-windows-x64.exe" instead of "jdk-8u45-windows-x64.exe" –  Dane411 Jun 27 '15 at 1:32

 | 

I have just solved the same issue upon setting up my Windows 8.1 PC. Exactly like @George Papatheodorou mentioned above (sorry I cannot



), Eclipse and JRE must be both 64 bit or 32 bit.

However, it seems for Windows 8/8.1 environment, you are going to get 32-bit JRE by default (and I do not know where to change that default for the download), as explained here: http://java.com/en/download/faq/win8_faq.xml

I was using 64-bit Eclipse so there was a discrepancy. I then installed 32-bit Eclipse and everything works fine this time.

So before bothering changing any environment variables, check your JRE and Eclipse version.

Of course you can use 64-bit JRE with 64-bit Eclipse. Just make sure they match because Windows 8.1 will give you 32-bit by default.


|
  this answer
edited Dec 30 '16 at 23:38 Peter Mortensen 10.9k 15 75 109 answered Nov 6 '14 at 16:28 Fenwick 187 11

 | 

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.


|
  this answer
edited Dec 30 '16 at 23:44 Peter Mortensen 10.9k 15 75 109 answered Dec 18 '14 at 10:17 Jitendra 758 4 17

 | 

Locate eclipse.ini:

Often at C:\Users\xxx\eclipse\jee-neon\eclipse, add

-vm
 C:\Program Files (x86)\Java\jre7\bin\javaw.exe

after

--launcher.appendVmargs

|
  this answer
edited Dec 31 '16 at 0:11 Peter Mortensen 10.9k 15 75 109 answered Oct 25 '16 at 1:31 PythonNewHand 1,260 1 6 17      One important note that caught me out, is to have the path on a separate line to -vm, as noted in the documentation –  Brian Gleeson - IBM Jan 9 at 11:53

 | 

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.


|
  this answer
edited Dec 30 '16 at 23:48 Peter Mortensen 10.9k 15 75 109 answered Feb 8 '15 at 17:10 sh977218 329 1 6 17

 | 

The best answer here is too long. I cannot comment so I added my answer.

  1. Go here: http://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. Download the latest SDK (of course for x64 if your computer is x64)
  3. Install it
  4. Now the party is finished, and it's time to work with Eclipse ;)

|
  this answer
edited Dec 30 '16 at 23:49 Peter Mortensen 10.9k 15 75 109 answered Feb 10 '15 at 9:13 fresko 95 7

 | 

It could be due to less memory. You can modify the eclipse.ini file to increase the memory. Something like this might help you: FAQ How do I increase the heap size available to Eclipse?


|
  this answer
edited Dec 30 '16 at 23:15 Peter Mortensen 10.9k 15 75 109 answered Jul 12 '12 at 22:38 vishal129 60 9

 | 

This might happen if you have several versions of Java on the same machine. To fix this I did the following:

  1. Checked the current JAVA_HOME value. In Windows, echo %JAVA_HOME%
  2. Accessed the route of javaw.exe
  3. Replaced the shortcuts pointing to the Java home location.

|
  this answer
edited Dec 30 '16 at 23:28 Peter Mortensen 10.9k 15 75 109 answered Oct 21 '14 at 16:01 user1336321 85 1 9

 | 

I had an x64 bit JDK. There was nothing in my path settings. So I installed the x86 JDK. This solved my problem perfectly.


|
  this answer
edited Dec 30 '16 at 23:43 Peter Mortensen 10.9k 15 75 109 answered Dec 15 '14 at 18:30 Sabri Meviş 792 10 15

 | 

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.


|
  this answer
edited Dec 30 '16 at 23:46 Peter Mortensen 10.9k 15 75 109 answered Jan 23 '15 at 13:59 Meengla 616 1 14 31

 | 

I also encountered the same issue. It turned out that the environment variable Path was pointing to an incorrect Java version.

Please check the environment variable and point it to the correct Java. For example:

C:\Program Files (x86)\Java\jdk1.6.0_17\bin

To check the environment variable, go to:

Computer → properties → Advanced system settings → Advanced -> Environment variables

|
  this answer
edited Dec 31 '16 at 0:00 Peter Mortensen 10.9k 15 75 109 answered Mar 13 '15 at 7:35 Touchstone 2,072 5 20 41

 | 

This type of errors occur basically due to use of different versions of Java with different version of Eclipse.

Suppose you are installing the 64-bit JDK on your system. Then make sure you install the 64-bit versioned Eclipse with it.

And if you are installing the 32-bit JDK on your system then make sure you install 32-bit versioned Eclipse with it.

I had the similar problem. I have installed the 32-bit JDK and was trying to use 64-bit Eclipse.

But when I installed the 64-bit JDK on my system then Eclipse started working without any problem.

It is advised to better install the 32-bit version of Java along with the 32-bit version Eclipse on a system with a 32-bit configuration and similarly for 64-bit systems.

This helps to increase performance of the system.


|
  this answer
edited Dec 31 '16 at 0:03 Peter Mortensen 10.9k 15 75 109 answered Jul 26 '15 at 19:48 Bhanupratap Singh 31 4

 | 

I found I had installed 32-bit Eclipse by mistake, and was trying to use it with a 64-bit JRE, which is why I got this error. To see whether you have 32 or 64 bit Eclipse installed, see this answer: http://stackoverflow.com/a/9578565/191761


|
  this answer
answered Oct 27 '14 at 15:53 Kidburla 1,223 1 16 40

 |  1 2 next

protected by Community♦ Jul 6 '13 at 6:49

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged java android eclipse windows or ask your own question.

Recommend:android - Java was started but returned exit code=13 eclipse

rned exit code=13 36 answers Eclipse ADT: Java was started but returned exit code=13 15 answers I looked at all the other places and I can't figure out how to do it. How do you type java -version into the console. Because all I get back is

oriUlr:http://stackoverflow.com/questions/11461607/cant-start-eclipse-java-was-started-but-returned-exit-code-13?page=1&tab=votes

------splitte line----------------------------