Stop exporting natives (LWJGL)
Answered
I use this -Djava.library.path=natives/ to tell Intellij IDEA where the native files for LWJGL are. LWJGL is added via Project Structure>Dependencies>Modules.
When I export my project as a jar (as artifact) it copies this files, resulting in a 2MB big jar. How do I prevent Intellij IDEA to export these, as I'm having them in natives-folder for every project enyways and they are useless in the jar?
Please sign in to leave a comment.
Check your artifact configuration, make sure these files are not in the resources directory or a library. If they are in a library, exclude this library from the artifact. See https://www.jetbrains.com/help/idea/artifacts.html.