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

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

问题描述

我有最新的 STS4.我使用已安装的 java-1.8 JDK not 作为执行环境嵌入.我的项目运行良好,没有任何问题.

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"

我已经试过了:

  1. JAVA_HOME 指向不同的 JDK
  2. .ini 文件中添加了 -vm 参数.
  1. pointing JAVA_HOME to different JDK
  2. added -vm args in the .ini file.

但我无法摆脱这个弹出窗口.

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 运行时环境的路径通常是不够的作为 Eclipse,Linux 发行包经常在内部执行扫描以自行获取 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:UserTempSoftwaresjavajdkoracle-jdk-1.8-64bitinjavaw.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天全站免登陆