如何在 Eclipse 4.2 中设置运行时类路径?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10383226/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:06:59  来源:igfitidea点击:

How do I set the runtime classpath in Eclipse 4.2?

eclipse

提问by August Karlstrom

When I select Run Configurations from the Run menu I see no tab named Classpath as in previous versions of Eclipse. Where do I set the runtime classpath?

当我从“运行”菜单中选择“运行配置”时,我没有看到与以前版本的 Eclipse 一样名为 Classpath 的选项卡。我在哪里设置运行时类路径?

采纳答案by apesa

In Eclipse look at Project -> Properties for the project you want a runtime configuration. Choose Run/Debug settings and choose new or edit one you already have. When creating a New run/debug config make sure to choose Java Project. When the dialog box opens you will see a tab for classpath directives.

在 Eclipse 中,查看您想要运行时配置的项目的 Project -> Properties。选择运行/调试设置并选择新的或编辑您已有的设置。创建新的运行/调试配置时,请确保选择 Java 项目。当对话框打开时,您将看到类路径指令的选项卡。

回答by Art

I stumbled upon this when developing a plugin for Eclipse - apparently the whole classpath business is slightly different in there.

我在为 Eclipse 开发插件时偶然发现了这一点 - 显然整个类路径业务在那里略有不同。

See this FAQ itemfor more details

有关更多详细信息,请参阅此常见问题解答项目