java - 烦恼 - 如何禁用 Eclipse 类路径条目警告

标签 java eclipse

我已经搜索了选项,但似乎找不到禁用这些警告的方法。诸如此类的警告:

Classpath entry org.eclipse.jdt.junit.JUNIT_CONTAINER/4 will not be exported or published. Runtime ClassNotFoundExceptions may result.   

除了弄乱我的“问题” View 之外,对我的项目没有任何帮助。

最佳答案

bug 190783可能与这个问题有关。

this warning will now have two Quick Fixes:

-one that adds the "dependency" attribute (this is the current quick fix)

-one that adds the "nondependency" attribute; the addition of this attribute will explicitly exclude the cp entry from consideration as a potential publish/export dependency. If the user changes their mind, they can remove this attribute via the JDT build path UI.

作为 Mondain评论:

I found it! Right click on the warning and select quick fix, yay!

这确实是您可以使用 Quick Fix 的方式:另见 FAQ What is a Quick Fix? , Quick Fix , 和 Quick Assist

alt text

关于java - 烦恼 - 如何禁用 Eclipse 类路径条目警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3653785/

相关文章:

java - 为什么要设置字符串 DRIVER?

java - 几天后无法访问 Web 应用程序

java - JUnit 测试方法的参数化替代方案

java - 启动 bundle org.eclipse.jetty.osgi.boot 时出错(Eclipse 中的 OSGi 框架)

java - 这段代码如何执行?

java - 从 Netbeans 转移到 Eclipse,现在 "Severe: PWC6117: File "null“未找到”

java - Checkmarx Java 修复日志伪造 - 清理用户输入

java - 用于检查重复元素的 1 个数组的片段

java - 我无法使用 TomEE 和 Eclipse 发布简单的 JAX-RS 服务 (IllegalArgumentException)

java - 如何使用 Graphics#fillOval 的中心作为引用在中心绘制随机圆