Jetty + intellij idea :: add library

I get java.lang.NoClassDefFoundErrorwhen I add a 3d library to my project. I tried adding libraries depending on web-inf / module / server libs, but this will not work. What is the right way to add libraries to a project using a jetty and an idea?

+3
source share
1 answer

This is a two-step process if you are using IntelliJ 9 or higher.

Open the project structure and click on "libraries". Add the directory containing the JARs you are interested in.

Then click on "artifacts" and make sure your libraries are in the WEB-INF / lib of your deployment.

JAR-, Jetty, (, JAR- JAR ), Jetty/lib, . WEB -INF/Lib.

+1

Source: https://habr.com/ru/post/1793868/


All Articles