I have the latest STS4. I am using installed java-1.8 JDK not embedded as the execution environment. My project just runs fine without any issue.
Ho
I had the same issue when i upgraded to Java 11.
I simply edited SpringToolSuite4.ini and added
-vm C:\Program Files\Java\jdk-11.0.4\bin\javaw.exe