File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar packaging

 
S.Subhash Chandran
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
John Lee
Ranch Hand
Posts: 2545
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi:
please refer to:
Jar Packaging;
Stub in JAR packaging.
Packaging.
 
S.Subhash Chandran
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic