tags:

views:

55

answers:

1

I've searched the options but I can't seem to find a way to disable these warnings. Warnings such as this:

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

Simply serve no purpose to me on my project other than to clutter my "Problems" view.

+2  A: 

bug 190783 might be relevant to this question.

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.

As Mondain comments:

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

That is indeed how you can use Quick Fix: See also FAQ What is a Quick Fix?, Quick Fix, and Quick Assist

alt text

VonC
Nice find! I'm surprised that its not fixed yet after 6 releases (3.0 -> 3.6).
Mondain
The quick fix is there in 3.6. It solved the problem for me.
Skip Head
Ok maybe I'm playing dumb here, but where do I set the attribute? Do I need to text-edit the .classpath file?
Mondain
@Mondain: I don't have the right Eclipse edition at hand right now, but if Skip reports the quick fixes are available in 3.6, those quick fixes will add the attributes for you in the right places.
VonC
I found it! Right click on the warning and select quick fix, yay!
Mondain
@Mondain: great! I have update the answer with links and picture describing how to use "quick fix" for future readers.
VonC