Cannot make a runnable .jar, classes "missing", thought I fixed _jar.xml

I cannot make a runnable .jar, the classes are missing, while in fact they are very much not. I found out that this can be caused by a bug in Intellij, some code might be missing in the _jar.xml.

So I added:

<element id="directory" name="META-INF">

  <element id="file-copy" path="$PROJECT_DIR$/src/META-INF/MANIFEST.MF" />

It didn't do didely squat.
So maybe MANIFEST.MF was not in the right place, now its in Main.resources.META-INF (its in src), but still no functional jar is produced.


Manifest-Version: 1.0
Main-Class: net.klingt.example.ProcessingExample

Maybe its something in the manifest file?

1 comment
Comment actions Permalink

Please attach a sample project to reproduce this problem.


Please sign in to leave a comment.