This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes jar packaging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "jar packaging" Watch "jar packaging" New topic
Author

jar packaging

S.Subhash Chandran
Greenhorn

Joined: Dec 31, 2002
Posts: 27
I have developed an swing application using XML config file. i have used jdom. for development i had the jdom.jar file in the class path. when i executed the app:
$ java MyFrame
it worked fine. then i bundled the compiled class files in a jar file indiwiz.jar (with appropriate manifest file), & execute:
$ java -jar indiwiz.jar
the exception thrown is:
Exception in thread "main" java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
jdom.jar is still in the classpath. why is this error being thrown?


Subhash Chandran S<br /><a href="http://www.indiwiz.com/" target="_blank" rel="nofollow">http://www.indiwiz.com/</a>
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
hi:
please refer to:
Jar Packaging;
Stub in JAR packaging.
Packaging.
S.Subhash Chandran
Greenhorn

Joined: Dec 31, 2002
Posts: 27
Thanks a lot! These url really helped:
http://java.sun.com/products/jdk/1.2/docs/guide/extensions/extensions.html
http://forum.java.sun.com/thread.jsp?thread=270279&forum=26&message=1033843
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar packaging