问题描述
我拥有最新的STS4.我正在使用未嵌入的java-1.8 jdk作为执行环境.我的项目运行正常,没有任何问题.
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.
但是,当我启动STS应用程序本身时,我会弹出一个对话框缺少tools.jar"我已经尝试过
However when I launch the STS application itself I have a pop up saying"Missing tools.jar"I have already tried
- 我尝试将JAVA_HOME指向其他Jdk
- 在.ini文件中添加了-vm args.
但是我无法摆脱这个弹出窗口.
Yet I cannot get rid of this pop up.
推荐答案
此修复程序位于-vm参数中. javaw.exe的顺序和绝对路径似乎是问题所在.
The fix is in the -vm parameter. the order and the absolute path of the javaw.exe seems to be the issue.
所以我现在已经编辑了SpringToolSuite4.ini并输入了该条目
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
重新启动我的STS,它运行完美.
Restarted my STS and it works perfect.
设置JVM 指定JVM 的参考对于理解这一点非常有用.
The reference to set the JVM Specifying the JVM was very useful in understanding this.
这篇关于启动STS应用程序时缺少tools.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!