I had the problem with STS 4 on Windows 10 that needed JVM V11. After JDK installation, you must add the bin path of the JDK in your PATH environment variable, in the first position, to ensure the system will use the right version.