jars added to WEB-INF/lib doesn't get recognized when I try to import them : says the package doesn't exist

做~自己de王妃 提交于 2019-12-02 01:35:56

You might also have to add them to your project's classpath.

for eclipse:

Right click the jar, select build path and add it to the build path, then try again.

for netbeans:

in the project properties window click libraries in the left panel. In the right panel add it to the compile classpath

General solution , whenever you get package does not exist then there are 2 things, 1- Its not at all present 2) its present but still the error is thrown. The solution to this is to just add the jar to the classpath [so that your app finds it during compilation,execution)

I would suggest you to try Maven . Maven is a nice way by which you can organize this in a systematic way.

If the IDE gives the problem then update the jars in IDE project class path :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!