1

I have included libraries using File->Project Structure->Libraries: enter image description here

In Artifacts, I made sure to include the library in the output JAR file: enter image description here

When I run the program inside IntelliJ, it works fine. However, when I try to run the JAR file it generates, it displays a NoClassDefFoundError: enter image description here

So the libraries aren't working. How can I get libraries to work in IntelliJ?

(I have never run into the problem before...)

MCMastery
  • 3,099
  • 2
  • 20
  • 43

0 Answers0