Java - jar with librairies included

Posted by kozher on Stack Overflow See other posts from Stack Overflow or by kozher
Published on 2011-06-24T15:02:35Z Indexed on 2011/06/24 16:22 UTC
Read the original article Hit count: 170

Filed under:
|

I am currently trying to make a Jar with all my librairies included. What I have done. I have created folders like this : - main folder - class (which contain all my classes) - ressources (containing all my librairies : mongo, jedis...) - MANIFEST.MF

My main class is named process.

My manifest is like this :

Main-Class: processEAN

Class-Path: ressources\commons-pool-1.5.6.jar ressources\jedis-2.0.0.jar resources\mongo-2.6.3.jar class

-> I have generated the JAR with this command :

jar cvmf MANIFEST.MF processEAN.jar class/*.class ressources/*.jar

My problem : When executing the JAR I have still the message "Exception in thread "main" java.lang.NoClassDefFoundError: processEAN"

Any ideas ? Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about jar