How to deploy jars properly?

Hello,

following: I've created and tested my project successfully. I tried to export it by creating an artifact file.
Creating this file works fine, but I can't execute it. I always run in NoClassDefFound exceptions.
- As the meaning of NoClassDefFound exceptions is clear to me, I tried to add all imported libaries to the artifact.
As far as I know I have to change the MANIFEST.MF file too.
I used a small ant file that listed me the needed classpath-files and added those files to the classpath (Artifact -> Manifest -> classpath).

However the exception still occurs, despite adding the files to the artifact and adding a correct classpath.
Running the application inside Intellij Idea works perfectly.

Could you show me a way how to deploy a jar file properly?

Regards,
CHAOSFISCH

Please sign in to leave a comment.