JRE issue with getting Spring Tool Suite

I downloaded Spring Toolset 3.6 from here:

https://spring.io/tools/sts/all

Unzip it by running sts.exe and getting this error:

---------------------------
STS
---------------------------
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run STS. No Java virtual machine
was found after searching the following locations:
D:\Setup\spring36\sts-bundle\sts-3.6.3.RELEASE\jre\bin\javaw.exe
javaw.exe in your current PATH
---------------------------
OK   
---------------------------

I have the next version (32 bit) of java

C:\Users\Chad>java.exe -version
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) Client VM (build 24.71-b01, mixed mode, sharing)

I tried adding the following 2 lines to the beginning of STS.ini:

-vm
C:\Windows\SysWOW64\javaw.exe

and got this error:

---------------------------
STS
---------------------------
Java was started but returned exit code=13
C:\Windows\SysWOW64\javaw.exe
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.browser.IEVersion=10001
-jar D:\Setup\spring36\sts-bundle\sts-3.6.3.RELEASE\\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os win32
-ws win32
-arch x86_64
-showsplash
-launcher D:\Setup\spring36\sts-bundle\sts-3.6.3.RELEASE\STS.exe
-name STS
--launcher.library D:\Setup\spring36\sts-bundle\sts-3.6.3.RELEASE\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326\eclipse_1603.dll
-startup D:\Setup\spring36\sts-bundle\sts-3.6.3.RELEASE\\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.overrideVmargs
-exitdata 1240_5c
-product org.springsource.sts.ide
-vm C:\Windows\SysWOW64\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-Dorg.eclipse.swt.browser.IEVersion=10001
-jar D:\Setup\spring36\sts-bundle\sts-3.6.3.RELEASE\\plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar 
---------------------------
OK   
---------------------------

Tried to add an Env variable:

JAVA_HOME = C:\Windows\SysWOW64\

... same error

when I opened the Java control panel, I saw that the active version 1.7 pointed to this path:

C:\Program Files (x86)\Java\jre7\bin\javaw.exe

I also tried adding the following to my PATH variable

C: \ Program Files (x86) \ Java \ jre7 \ bin

... without changes,

When I noticed the following line in one of the error messages above:

Dosgi.requiredJavaVersion=1.6

I tried to switch the active version of java (checked on the control panel) to version 1.65, and I changed all of the above paths to point to its link.

C:\Program Files (x86)\Java\jre6\bin\javaw.exe

, , , , .

32- JDK, -, , .

- 32/64 ? STS 32- , - 32 64 zip. zip . 32 64 ?

spring -tool-suite-3.6.3.RELEASE-e4.4.1-win32.zip

- Java, , ...

+6
6

STS/Eclipse - x64, - "-arch x86_64" STS. -vm STS.ini. : -vm C:\Java\JDK\1.6\Bin\javaw.exe

C:\Windows\SysWOW64\javaw.exe... x64 VM? JDK/JRE bin, lib . Javaw.exe, , "bin". "bin" VM. JDK/JRE .

+8

, STS , .

( " Java :...\sts-bundle\sts-3.6.3.RELEASE\jre\bin\javaw.exe PATH '), , \jre .

JRE 1.7 C:\Program Files\Java STS .

0

STS4. -vm SpringToolSuite4.ini:

-startup
plugins/org.eclipse.equinox.launcher_1.5.100.v20180827-1352.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.800.v20180827-1352
-product
org.springframework.boot.ide.branding.sts4
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.8.0_162\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM
-Xms40m
-Xmx1200m

: , config , -vmargs openFile -vmargs.

INS STS/Eclipse Missing tools.jar STS eclipse.ini

0

Linux

:

Ubuntu 18.04.1 LTS

Spring Tool Suite 4 
Version: 4.1.1.RELEASE
Build Id: 201901241133
OS: Linux, v.4.15.0-45-generic, x86_64 / gtk 3.22.30
Java version: 11.0.2

Spring Tool Suite SprintToolSuite4.ini 2 openFile:

-vm
/usr/lib/jvm/<your-java-folder>/<your-java-subfolder>/bin

SprintToolSuite4.ini :

enter image description here


JRE ( /bin) INI .

0

. , , .

  1. Java. , , , Java -version .
  2. eclipse/STS, eclipse.ini sts.ini .

Below the open file, just add the following two lines, save it and restart eclipse / STS.

-vm
C:\Program Files\Oracle\OpenJDK 11.0.1\bin
0
source

Go to the installed JRE folder (\ Program Files \ Java \ jre [any version is installed] \ bin), then find javaw.exe. Copy this application to the spring folder.

-1
source

All Articles