In Intellij, I have a java project that I would like to use (add it as a dependency) in multiple other java projects.
I've tried "Project Structure >> Libraries" and adding the project. This gives no errors, and even allows auto complete of classes and auto import of the packages from this library.
However, when I run the code it complains "package [...] does not exist." Is there any way to import an existing project?