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 E
Initial I uninstall another Java SE Development Kit , next I added the follow path in the *SpringToolSuite4.ini in my case: *(depends of your IDE that you´ve installed)
-vm
C:\Program Files\Java\jdk1.8.0_131\bin\java.exe**
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
You likely installed the default version of STS from the spring.io website which is normally the 32 bit version.
Click to see all versions and download the windows 64 bit version from the next page.
Good luck.
If you dowloaded 64 bits version of STS Spring, check the version of java you have by taping in cmd :
java -d64 -version
If you dont have the jre 64 bits, install it and it will work .
I faced this issue due to my java update. So below is the cause
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.