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.
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)
i had the same issue... installed sts but consistently got the "java was started but returned exit code=13" message. my issue was that i was using the default install file, which was not processor specific, from https://spring.io/tools/sts. i had to dive deeper to be very specific in downloading the 64 bit version. it was not intuitive as to which version you were downloading. once i got the 64 bit version (note that the zip file still includes 'win32' in the name, just appends '-64' at end) it worked.
in my case, i have two different jdk that is ibm and oracle jdk. i moved ibm jdk to the top of the oracle jdk in environment variable then it worked. note: i am going to use ibm jdk so i moved up.
it could be jdk combinations issue or jdk version issue select proper one. i am using combination of 64-bit operating system, 64-bit jdk, 64-bit eclipse ide.
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: https://stackoverflow.com/a/9578565/191761
i was facing the same issue. i had installed version 8 and update 25 32 bit.
to fix, install java se development kit 7 update 71 (64 bit). then through appwiz.cpl, delete the other version i.e. java update 25. done.
i've solved this issue by installing a jdk (v7 update 80) whereas i had only had the jre installed before.
note: this was for ibm's rtc software (built on eclipse).
the top answer didn't work for me: i had no environment variables defining the java path or no java in my path.
however, the path c:\programdata\oracle\java\javapath\javaw.exe was always present in the eclipse 4.5 (mars) error popup in the
-vm option even if i tried to override in file eclipse.ini.
i worked around this by opening a command prompt, cd'ing the directory where the eclipse.exe was and using mklink:
c:\eclipsemars> mklink javaw.exe "c:\program files\java\jdk1.7.0_79\bin"
symbolic link created for javaw.exe <<===>> c:\program files\java\jdk1.7.0_79\bin
no changes to eclipse.ini were required.
i did try to specify the
-vm option of in eclipse.ini, and it was taken into account, but in the error popup a
-vm option was present twice even if only one
-vm was present in eclipse.ini.
in my eclipse.ini i have no
-vm option and just the symlink seems to have corrected it.
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.
i had an x64 bit jdk. there was nothing in my path settings. so i installed the x86 jdk. this solved my problem perfectly.
if nothing works, then the last solution you can try is to completely uninstall java from your computer and then install it again, and make sure the path variables are set correctly.
at the risk of not adding a great deal of value to the existing answers, but having gone through all this mess myself, i would like to see if i can consolidate how i addressed the problem:
maintain separate development from your normal machine environments. the reason for this is that there are probably many applications running on your machine that you are not aware of that need java to be updated occasionally, for example banking and security applications. when those updates occur they change the environmental variables and so if you are using those in your development environment the update will almost certainly break your eclipse setup.
install versions of eclipse, either 32 and 64 bit depending on your plugins etc. the reason is that many plugins still require 32bit and trying to install them into a 64bit environment causes many obscure (very obscure) errors. this means for example you may have to have separate instances of eclipse for your java ee, php, python, assembler, etc, development environments. this may appear to be onerous, but for me this has been a blessing.
install two java runtimes once again one 32bit and one 64bit and then edit the eclipse.ini for each of your installations to point to the correct jre, not the jre home in the environmental variables. i create a directory in
c:\java\32bit\etcand in your eclipse.ini file you add the -vm
c:\java\64bit\jdk1.7.0_15\binline to point to your needed java runtime.
once the above is done you can install java sdks updates as much as you like but your development environment will never break. if you need to update your development runtime environment just alter the -vm path in your eclipse.ini
in case your machine has multiple java versions installed, you can simply tell eclipse which and from where to use javaw.exe.
in my case i have ibm jdk, with oracle jdk too, but for eclipse to pickup, added below lines in eclipse.ini file in eclipse directory and it worked.
path to your java folder has to be replaced in above example
hope it helps.
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.
it could be due to too little 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?
i have just solved the same issue upon setting up my windows 8.1 pc. exactly like @george papatheodorou mentioned above (sorry i cannot add a comment), 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.
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.
please check whether you have set two java paths in the environment variable section. if you already installed two versions of the jdk, it might be, then double check you have put path for java like below.
path --> c:\programdata\oracle\java\javapath
java_home ---> c:\program files\java\jdk1.7.0_02\bin
if both are there, then this sort of error may occur.
if it's ok, then check in the ".ini" file the below area is ok or not. open ".ini" file and check
-vm path is c:\program files\java\jdk1.7.0_79\bin\
if not, please set it like that and run again.
in "path" variable removed "c:\programdata\oracle\java\javapath" and replaced it with "c:\program files\java\jdk1.8.0_212\bin"
it worked for me.
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.
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 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
make sure you don't have special characters (
#, etc.) at eclipse path.
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.
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:
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 ;)
i had this message when i had forgot to install the jdk.
the solution is simple: put the "eclipse" folder on "c:/program files". if it does not work, put it in "c:/program files (x86)".
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
i uninstalled java update 25, and the issue was solved.
c:\program files (x86)\java\jre7\bin\javaw.exe
the strangest fix ever. look at your eclipse path, and make sure you do not have strange characters (like
@). it worked for me.
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
adding more details to this
for sts 3.9.18 release i was getting error java was started but returned exit code=13 and for latest release same issue just the returned exit code was 14. this was due to default java chosed was of 32 bit and this version of sts/eclipes is for 64 bits. resolved this by setting 64 bits version of java in sts.ini file as -vm c:\progra~1\java\jdk1.8.0_131\bin\javaw.exe this is before vmargs parameters in the file.
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.
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!
if you have recently installed java 8 and uninstalled java 7, install jdk 8 and retry.
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).
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, 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
left for historical reference:
to check your version of java, run
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)
if you are on a 64-bit machine, then you can install the 64-bit jdk and uninstall the 32-bit one. for instance on windows 10, just go to settings and under apps, you will find java. click on it and you will find all the different versions. now you can select which one to uninstall.
- Can't start Eclipse - Java was started but returned exit code=13
- Java was started but returned exit code=13 eclipse
- Eclipse is throwing error - Java was started but returned exit code= -805306369
- Eclipse Error - Java was started but returned exit code=13
- Eclipse ADT: Java was started but returned exit code=13
- Eclipse ADT - java was started but returned exit code = 13
- Eclipse error: java was started but returned exit code=1
- Eclipse Genymotion error: Java was started but returned exit code=-805306369
- Error while starting eclipse spring boot. - Java was started but returned exit code=13
- Eclipse - Java was started but returned exit code=13
- Eclipse not opening - Java was started but returned exit code=13
- eclipse exiting with java was started but returned exit code
- Eclipse returns error message "Java was started but returned exit code = 1"
- Eclipse gives “Java was started but returned exit code 13”
- java was started but returned exit code = -805306369
- MyEclipse 10 does not start "Java was started but returned exit code 13"
- java was started but returned exit code
- Java was started but returned with exit code=1
- Multiple java versions installed and java was started but returned exit code=13
- Java was started but returned exit code 13
- Eclipse returned error message “Java was started but returned exit code= 1”
- Eclipse Crash "java was started but returned exit code = -805306369"
- Java was started but returned exit code = 13
- STS 3.9- Java was started but returned exit code=13
- java was started but returned exit code= -8053306369
- Eclipse: Java was started but returned exit code -1073741571
- Java was started but returned exit code=1?
- Eclipse "Java was started but returned exit code=1" with OpenJDK
- Java was started but returned exit code = -1
- Error in running eclipse for android development- "Java was started but returned exit code 13"
More Query from same tag
- Problem deploying servlets in JBoss 5.1 on eclipse
- Android old interface for Eclipse
- java.lang.UnsatisfiedLinkError when i load a jar .
- How to implement undo/redo functionality into Eclipse FormEditor?
- Eclipse : Programmatically importing projects without copying
- Eclipse: Scala cannot access Java Class members - just after some cleanup
- Can you run xmllint within eclipse to validate xml and dtd files?
- How to benefit from SVN in web development
- Eclipse eGit : History view only shows local history, not remote history
- Error when creating android project with older API
- The JAR file C:\sdk\platforms\android-18\android.jar has no source attachment. You can attach the source by clicking attach source below
- Subclipse SVN first commit ignore certain directories
- How to download or link OpenCV Javadoc in Eclipse
- Do we have any (Eclipse ) opensource IDE support for Karaf +Camel Development
- Unexpected overwriting CVS/SVN repository files in Mac Eclipse
- Servlet Throws Exception at Runtime in Eclipse
- Xml response retrieving issue
- Deployment rejected on migrated Artifactory Instance
- How to show short cut to android sdk and adt manager on eclipse
- How do I make an image button that opens a new XML page in Android?
- How to sort a list of my objects
- Modify existing Java source programatically with Eclipse JDT ASTRewrite as a standalone application
- Instal Eclipse XML Development Tools in Aptana Studio 3
- Android Application Bluetooth Connection Phone-PC
- How to install an app I write twice?
- "API restriction error" when exporting Eclipse plugin with maven-tycho:
- Raspberry PI 2 - How to get file-access for c-program to write on disc
- Eclipse no longer starts
- How to publish JSP code changes, from Eclipse to Tomcat
- How can I build a release with embedded jetty and maven?