• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Jar issue - NoClassDefFoundError when attempting to run. Class-Path set in MANIFEST.MF

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey all,

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.

What am I doing wrong?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic