How to import jars into web projects

     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

Comment actions Permalink

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.


Comment actions Permalink

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


Please sign in to leave a comment.