如何解决 "The jar referenced by the classpath does not exist" 错误?

How to resolve "The jar referenced by the classpath does not exist" error?

我将我的 STS 从 3.6.1 升级到 3.9.15,从那时起我就开始收到此错误。 The archive C:/Program File(x86)/sts-bundle3.6.1/sts3.6.1.RELEASE/plugins/org.apache.axis_1.4.0.v201005080400/lib/axis.jar which is referenced by the classpath does not exist.

我在这个位置甚至没有 sts,我不确定为什么 STS 会抛出这个错误?通过项目的构建路径 -> 配置构建路径,我没有看到项目的构建路径有任何错误。

您提到的 JAR 文件似乎是在您的某个项目的类路径中直接引用的。也许您过去使用过一些特定于 Eclipse 的工具来生成 Web 服务?这可能是将此库添加到您的项目的根本原因。

此 JAR 文件不再是 STS3 默认分发的一部分。如果你的项目仍然需要类路径上的那个 JAR 文件,我建议将它作为依赖添加到你的构建配置中(例如,如果你使用 Maven,Maven pom.xml 文件)并将它作为直接条目从类路径。