I have verified that the jar is intact and not corrupt. I've added the jar as a module dependency and as a library, and the compiler is still unable to find the jar.
Get intellij jar location windows#
So, basically, what you do is that you open the "Maven Projects" panel, you find the project of interest, (in your case, the project that builds your jar,) underneath it you find the maven goal that you want to execute, (usually the "package" goal creates jars,) you open up the context menu on it, (right-click on a Windows machine,) and there will be an "Execute before Run/Debug." option that you can select and it will take you by the hand from there. I am attempting to add an external jar to my module's build path. (The only disadvantage of their description is that their screenshots are in the default black-on-white color scheme instead of the super-awesome darcula theme. Scroll down to the section called "Configuring triggers for Maven goals". Jetbrains has a nice description of how you can accomplish this here: The building of the jar needs to be triggered by a run/debug configuration, not by the project settings. Some of the other answers are useless because as soon as you re-import the IntelliJ IDEA project from the maven project, all changes will be lost. then click build on menu, build artifacts, build.The MANIFEST.MF needs to be in your resources folder and the Main.Class needs to refer to