How to import jars into web projects

Hi,
     I created a web project and added the needed jars in the "module settings" -> "Libraries", and it's ok when in editor,but when deploy the project, the console shows that can't find the classes in the jars added.
I had to put the jars into the projects dir\web\WEB-INF\lib dir.
     Is there some configures to make it automatically?
     thanks a lot

2 comments

Hi Yang,

You should configure corresponding Artifact for your web module. Feel free to check IDEA help for more details about that - Web, EJB and Java EE Application Facets -> Create Artifact.


Denis

0

thanks very much, I got it ~~~~
have a nice day~

0

Please sign in to leave a comment.