STS launch error - Java was started but returned e

2020-03-08 08:51发布

So I installed STS a while back now onto my Windows 7 64-bit machine, every time I try run STS I get the attached Java exit code=13 error below.

I don't have have Eclipse installed into my machine, I mention this because every time I have tried to Google this error code threads about the same issue happening on Eclipse come up.

I have also tried checking if Java is installed on my machine which it is.

Does anyone know how to resolve this?

16条回答
Emotional °昔
2楼-- · 2020-03-08 09:00

On the STS page, the Download STS button downloads the version for 32-bit Windows by default. Under the download button, click See all versions (https://spring.io/tools/sts/all). From there you can click the menu button and select the 64-bit Windows version.

查看更多
做自己的国王
3楼-- · 2020-03-08 09:01

I faced this issue due to my java update. So below is the cause

  1. Or java 64 bit and eclipse 32 bit version
  2. You have java version 32 bit and eclipse 64 bit version
  3. External cause, if you have two version of java installed(32 bit and 64 bit), if one got updated means your path variable pointing to java will change.

Solution:- Check your java version is 32 bit or 64 bit with command below

 java -d64 -version

If It's 64 bit it will show

java version "1.8.0_181"

Java(TM) SE Runtime Environment (build 1.8.0_181-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

If It's not

It will show something like this

Error: This Java instance does not support a 64-bit JVM.
Please install the desired version.

Based on the java version change your STS, to either 32 bit or 64 bit.

查看更多
趁早两清
4楼-- · 2020-03-08 09:01

So basically when you go to Spring website, it doesnt understand your client OS and prompts you to download 32 bit version. I faced the same issue and explicitly had to download 64 bit version, by clicking on "see all versions". Also some suggested removing "C:\ProgramData\Oracle\Java\javapath" entry from Path, but while it is true if you have actually downloaded JDK 1.8, it is not going to help resolve the specific issue here.

查看更多
萌系小妹纸
5楼-- · 2020-03-08 09:03

I removed C:\ProgramData\Oracle\Java\javapath from the PATH environment variable. It worked for me then. So basically it's a path variable issue.

查看更多
何必那么认真
6楼-- · 2020-03-08 09:10

STS mostly ends up with error code 13 if you are using for the first time. Here is a fix to the problem. Please visit this link I found here https://youtu.be/cMClVM6rzuc.

here is the summary of the solution - The Error while launching STS is mostly because you have downloaded 32 bit STS bundle from spring.io website. you need to check your system architecture and download the appropriate version. You can watch the video for detailed information. I am 100% sure you will find your solution

查看更多
虎瘦雄心在
7楼-- · 2020-03-08 09:11

First of all, please check your STS path. Remove if there is any special character such as # or etc in your path. After verify this, please go for any of the above solutions ;)

查看更多
登录 后发表回答