启动STS应用程序时缺少tools.jar [英] Missing tools.jar when launching STS application

查看:601
本文介绍了启动STS应用程序时缺少tools.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有最新的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

  1. 我尝试将JAVA_HOME指向其他Jdk
  2. 在.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.

自述文件中提到_ 要在备用Java运行时环境中运行Eclipse,必须确定Java虚拟机二进制文件的路径.使用发行版中的Eclipse安装,更改$ PATH变量以包含到备用Java运行时环境的路径通常是不够的.就像Linux发行包中的Eclipse经常在内部执行扫描以自己获取GCJ一样,而忽略了$ PATH上的内容."

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."

所以我现在已经编辑了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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆