Jar issue - NoClassDefFoundError when attempting to run. Class-Path set in MANIFEST.MF
Joined: Mar 29, 2010
I spend most of my time doing web development, and rarely write standalone Java applications. A recent project had me put one together, and I'm banging my head against the wall with (what I believe are) Class-Path issues now.
The program I'm attempting to run has been packaged into a .jar. I'm using Maven to build it. There are 5 other jars that it is dependent on. I've put all 6 jars into the same folder for now for simplicity's sake.
The directory contains:
eBisDataFeed-201003.0.1.jar <- home of the main class
Maven is generating the following MANIFEST.MF file:
I get the following error message when I try to run this:
The class in question "com.mlb.sql.exporter.SQLScriptDirectoryDumper" is contained in the "exporter-200908.0.1.jar". I have verified the class is built and in there.
I've attempted to gut the entire main method, and just System.out.println("something");... which works... so I know it can find the main class.
It's when I re-include the code that is dependent on the SQLScriptDirectoryDumper that it gives me the error.
I'm at a loss. As far as I can tell, the MANIFEST is configured properly, and the classes are there.