IntelliJ Java IDE
The moose likes Java in General and the fly likes NoClassDefFoundError on application Jar Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "NoClassDefFoundError on application Jar" Watch "NoClassDefFoundError on application Jar" New topic
Author

NoClassDefFoundError on application Jar

Alan Shiers
Ranch Hand

Joined: Sep 24, 2003
Posts: 194
Hi Guys,

Hope you can help. I've packaged up my project into a Jar file with the manifest.mf that reads:

Manifest-Version: 1.0
Class-Path: lib/fdsapi.jar lib/jakarta-oro-2.0.8.jar lib/JAMon.jar
Main-Class: parser.MainGUI

As you can see my application relies on three library jar files that reside in the lib directory. I've opened the jar file and the lib directory does exist there and the jar file are there also. When I use the commend java -jar pns.jar the application runs but it stalls when it is unable to locate a class that resides in one of the library jars. What more might I need to do to make sure these library jars wind up in the classpath?

Alan
Rob Spoor
Saloon Keeper

Joined: Oct 27, 2005
Posts: 18370

The lib folder shouldn't be placed inside the JAR file, but in the same folder as the JAR file.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
IntelliJ Java IDE
 
subject: NoClassDefFoundError on application Jar
 
Threads others viewed
How do I load drivers?
Weblogic doesnot support WEB-INF/lib ?
eclipse ganymede - how to redirect non ejb library jars to lib
TLD: classes must be stored in /WEB-INF/classes
Jar Files in another jar file (MANIFEST.MF Question)
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture