Missing tools.jar when launching STS application

后端 未结 12 2079
我在风中等你
我在风中等你 2020-12-08 14:29

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

相关标签:
12条回答
  • 2020-12-08 14:32

    Just remove this line from variable "Path"

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

    System Properties > Advanced > Environment Variables > Path > Edit > Reboot

    Worked for me

    0 讨论(0)
  • 2020-12-08 14:36

    By downloading the tool file and paste it in the jre\lib path. but make sure you should rename the pasted file as "tools.jar".

    step 1 download the tool file. download link http://www.java2s.com/Code/Jar/t/Downloadtools160jar.htm

    step 2 extract the zip file.

    step 3 you should rename the included .jar file as "tools".

    step 4 then copy the renamed tools.jar file and paste in the C:\Program Files\Java\jre8\lib\ path.

    then restart the STS ide.

    0 讨论(0)
  • 2020-12-08 14:37

    I have STS4 so I have modified SpringToolSuite4.ini

    I changed from:

    [...]
    --launcher.defaultAction
    openFile
    -vmargs
    -Dosgi.requiredJavaVersion=1.8
    [...]
    

    to exactly this

    [...]
    --launcher.defaultAction
    openFile
    -vm
    C:\Program Files\Java\jdk1.8.0_152\bin\javaw.exe
    -vmargs
    -Dosgi.requiredJavaVersion=1.8
    [...]
    

    And the message dissapeared

    0 讨论(0)
  • 2020-12-08 14:37

    For me, I had to do two things to make it work:

    1. Remove vmargs:
      • vmargs
      • Dosgi.requiredJavaVersion=1.8
    2. Setting the JDK:
      • vm
        C:\Program Files\Java\jdk1.8.0_131\bin
    0 讨论(0)
  • 2020-12-08 14:37
    • I have fixed this from Window->preferences->Java->Installed JREs . Then add the jdk bin path, uncheck other related jre paths

    0 讨论(0)
  • 2020-12-08 14:39

    I solved this same problem by modifying the file "eclipse.ini". First I tried to solve it by modifying the file SpringToolSuite4.ini, but nothing happened, because I previusly had installed the eclipse ide, and the change in SpringToolSuite4.ini didn't work. then I modified the file eclipse.ini; and it worked.

    The changes that I did in eclipse.ini are detailed below:

    To check with what Java version (JRE or JDK) Eclipse is running, do the following:

    • Open the menu item Help > About Eclipse. (On the Mac, it’s in the Eclipse-menu, not the Help-menu)
    • Click on Installation Details.
    • Switch to the tab Configuration
    • Search for a line that starts with -vm. The line following it shows which Java binary is used.

    Depending on the name and location of the used Java binary one can figure out if a JRE or a JDK is used:

    • If the path contains “jre” (e.g. as in C:\Program Files\Java\jre6\bin\client\jvm.dll) it is a JRE
    • If the path contains “jdk” (e.g. as in C:\Program Files\Java\jdk1.6.0_31\bin\javaw.exe) it is a JDK.

    If no JDK is used for Eclipse, change it:

    • Quit Eclipse if it is running
    • Go to the Eclipse installation directory and open the file eclipse.ini in a text editor.
    • Search for the line -vmargs
    • Before the line -vmargs, add two lines:

      On the first line, write -vm

      On the second line, write the path to your JDK installation (usually something like: C:\Program Files\Java\jdk1.6.0_31\bin\javaw.exe on Windows)*

    source: https://matsim.org/docs/devguide/eclipse/jdk

    0 讨论(0)
提交回复
热议问题