Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Tool Suite launch error - Java was started but returned exit code=13

I followed these following questions and answers: link1

link2, link3, link4

But still i am not getting solution for my problem. My STS.ini file is: STS.ini,

And I got error is:STS launching error.

If anyone has solution please respond.

like image 743
AKA Avatar asked May 14 '17 12:05

AKA


3 Answers

If you clicked the download button on the Spring Tool Suite site it probably downloaded the 32-bit version (as the browser you used is, probably, 32 bit). I haven't found a way to determine which version you downloaded besides the name of the rar file

32 bits version file is named spring-tool-suite-3.8.4.RELEASE-e4.6.3-win32.zip and 64 bits is spring-tool-suite-3.8.4.RELEASE-e4.6.3-win32-x86_64.zip (notice the -x86_64 at the end)

So, in order to fix your issue:

  1. Confirm that you are using 64 bit Java

    1.1 Start a terminal (cmd at Windows) and run java -version

  2. Download 64 bits Spring Tool Suite manually from its download all versions page

  3. Unzip

  4. Execute $UNZIPPED_FOLDER/sts-bundle/sts-3.8.4.RELEASE/STS.exe

  5. If everything goes ok mark this answer as correct ;)

I ran the same issue as you just an hour ago and that was the way I fixed it. For future downloads select manually which software version you want to download (as default selected will probably be 32 bits)

like image 77
Alberto S. Avatar answered Oct 21 '22 13:10

Alberto S.


The -vm argument in your STS.ini file has to be the first one in that file. Eclipse doesn't allow this argument to be placed anywhere else in that file. I hope that helps.

like image 35
Martin Lippert Avatar answered Oct 21 '22 15:10

Martin Lippert


Resolved for me. The problem is the 32 and 64bit versions.

I accidentally downloaded a 32bit version of the JDK 1.8 and a 64bit version of Spring Tools Suite 4

And for worse, I copied and pasted the environment variable JAVA_HOME without pay attention, pointing to C:\Program Files (x86)... :)

Then, I uninstall de JDK 32 bit and later installed the 64bit version.

create/set an environment variable and path like following:

variable name: JAVA_HOME variable value: C:\Program Files\Java\jdk1.8.0_261 and finally, in Path, set %JAVA_HOME%\bin

My apologies for my horrible english

like image 1
Jorge Dacev Avatar answered Oct 21 '22 14:10

Jorge Dacev