Java – Eclipse Helios: Tomcat project – jar will not be exported or published Runtime may cause classnotfoundexceptions

I'm using eclipse Helios. I want to know how to add the library project to my folder, which will be copied to the build directory where the project I compiled is located

At present, I have done the following:

>Create a lib directory in the root directory of my project > copy related cans to that Directory > my project – > properties – > java build path – > Add cans. I added all cans in this directory

After adding all jars, I get the following warning about each jar file:

jar will not be exported or published. runtime ClassNotFoundExceptions may result

First, how do I add a directory of cans instead of individual cans? The second question is how to properly deploy libraries when compiling applications?

Solution

It can be:

>A simple refresh period:

>Process problems (starting from cached blog entry, original one is unavailable):

>Project configuration problem

OP Ufk mentioned in the comments:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>