如何在 Eclipse 中编辑(运行时)类路径?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9282440/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I edit the (runtime) classpath in Eclipse?
提问by Xonatron
In Eclipse, while trying to start Tomcat, I am getting this error:
在 Eclipse 中,尝试启动 Tomcat 时,出现此错误:
The project: xxxxxxs which is referenced by the classpath, does not exist.
The project: xxxxxxs which is referenced by the classpath, does not exist.
The reason is, I renamed my project from xxxxxxs
to xxxxxx
(note no "s"). It is still referencing the old one. Where is the (runtime) classpath and how do I edit it?
原因是,我将我的项目重命名xxxxxxs
为xxxxxx
(注意没有“s”)。它仍然引用旧的。(运行时)类路径在哪里以及如何编辑它?
I know this is simple, and I've looked.
我知道这很简单,我已经看过了。
(Similar to Java Eclipse - How do I change the classpath?but I just want to know how to edit it, not how to solve my particular problem.)
(类似于Java Eclipse - 如何更改类路径?但我只想知道如何编辑它,而不是如何解决我的特定问题。)
回答by Xonatron
Found it now that I've asked:
现在找到了,我问过:
Run -> Run Configurations... -> Classpath
Run -> Run Configurations... -> Classpath
This is for the runtimeclasspath, for build classpath editing, see Java - Problem with the classpath on Eclipse.
这是用于运行时类路径,对于构建类路径编辑,请参阅Java - Eclipse 上的类路径问题。