This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
My mind is gone. Here is the situation: Using Eclipse I generate a jar file containing the following structure:
com libs META-INF application.properties log4j.properties
Okay, I made a manifest that specified an entry point for my app (this part works). What doesn't work is that I'm getting a NoClassDefFoundError NO MATTER WHAT I DO. I tried specifing like 1000 varieties of Class-Path: in the manifest, with paths like libs/commons-configuration-1.4/commons-configuration-1.4.jar or ./libs or even putting the jars right in the libs directory or even in the same directory at the main class.
You mean inside the main jar? Then that's your problem. Don't do that, standard classloaders won't find jars inside jars. Put them in the same directory as your executable jar. The path you put in the manifest for a library jar is relative to the executable jar.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com