jvmspring-tool-suitevmargs

Missing tools.jar when launching STS application


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.

However when I launch the STS application itself I have a pop up saying "Missing tools.jar"

ScreenShot of the error

I have already tried:

  1. pointing JAVA_HOME to different JDK
  2. added -vm args in the .ini file.

Yet I cannot get rid of this pop up.


Solution

  • The fix is in the -vm parameter. the order and the absolute path of the javaw.exe seems to be the issue.

    the readme file mentions _ "To run Eclipse with an alternate Java runtime environment, the path to the Java virtual machine's binary must be identified. With an Eclipse installation from the distribution, altering the $PATH variable to include the path to the alternate Java runtime environment is often not enough as the Eclipse that Linux distributions package often performs a scan internally to pick up GCJ by itself whilst ignoring what's on the $PATH."

    So I have edited now the SpringToolSuite4.ini and made this entry

      -vm
     C:\UserTemp\Softwares\java\jdk\oracle-jdk-1.8-64bit\bin\javaw.exe
    

    Restarted my STS and it works perfect.

    The reference to set the JVM Specifying the JVM was very useful in understanding this.