How to add an external library to a project in IntelliJ IDEA so that when creating an artifact, it still has access to the classes in the library?
I created a new Jar artifact from the project structure, and then added an external JAR to the libraries, then checked it in the module list and finally added it to the output for the artifact. None of these works. When I create and try to start the application, it gives an error message:
Exception in thread "main" java.lang.NoClassDefFoundError: <path of the class trying to use>
What am I missing, or am I doing it completely wrong?
source share