STS startup error - Java was started, but returned exit code = 13

So, I installed STS some time ago on my 64-bit machine on Windows 7, every time I try to start STS, I get the following Java exit code = 13.

I do not have Eclipse installed on my computer, I mention this because every time I try Google, this error code causes the same problems as on Eclipse.

I also tried to check if Java is installed on my computer.

Does anyone know how to solve this?

+17
source share
15 answers

, 64 bit java. java STS.ini.

, -vm STS.ini. -vm Eclipse (, -product, -launcher. * ..), -vmargs.

-vm :

-vm
C:\jdk1.7.0_21\bin\javaw.exe

-vm C:\jdk1.7.0_21\bin\javaw.exe 

-vm C:\jdk1.7.0_21\jre\bin\java.exe

Java was started but returned exit code=1, `-vm jvm.dll

-vm
C:\Development\Java\64bit\jdk1.7.0_09\jre\bin\server\jvm.dll

STS.ini.

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vm
C:\Program Files\IBM\Java71\jre\bin\java.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-XX:MaxPermSize=256m
-Xverify:none
-Dorg.eclipse.swt.browser.IEVersion=10001
-Xmx1200m

:

+18

, java , 32 64

+4

STS 13, . . , https://youtu.be/cMClVM6rzuc.

- STS , 32- STS - spring.io. . . 100% ,

+4

64- STS Spring, java, CMD:

java -d64 -version 

64 , , .

+4

C:\ProgramData\Oracle\Java\javapath PATH. . .

+2

STS Download STS 32- Windows . " " (https://spring.io/tools/sts/all). 64- Windows.

+2

- Java.

  1. 64- Java 32- Eclipse
  2. 32- Java 64- Eclipse
  3. , Java (32- 64-), , , , java, .

: - Java 32- 64-

 java -d64 -version

64 ,

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)

-

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

Java STS 32- 64-.

+2

, , Spring, 32- . 64- , " ". "C:\ProgramData\Oracle\Java\javapath" Path, , JDK 1.8, .

+1

32- JRE ( 64- ) -vm 32- JRE, .

0

, STS - spring.io, 32- .

, 64- Windows .

.

0

Java .

C:\Program Files (x86)\Common Files\Oracle\Java\javapath

JDK .

0

Java SE Development Kit, * SpringToolSuite4.ini : * ( IDE, )

-vm
C:\Program Files\Java\jdk1.8.0_131\bin\java.exe**
0

JDK ( ) STS ( ).

0

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

0
source

Source: https://habr.com/ru/post/1677114/


All Articles