Eclipse exported jar not working



Hi all:
Hope this is not a newbie question.

I am developing a application which uses a JAR file downloaded from the Internet. I use "import external jar" and it worked alright under the Eclipse Run. However when I export it onto a jar, it always say that NoClassDefFoundError. It cannot find the class files inside the jar I imported. Is there anyway which I can solve this? I always thought Eclipse will take care of the classpath for you.

Also, when I unzip my own jar file, I found out that there are no sign of my imported Jar file. I'd like to include the jar in my own jar, so other people who use my application will not have to explicitly download that jar by themselves. Is this possible?

Thanks
Mark
.



Relevant Pages

  • Re: Java Anwendung veröffentlichen mit Eclipse 3
    ... dann mit Rechter Maustaste und "Create Jar File" schnell eine neue Version ... nachdem ich sie in ein Jar-File exportiert habe. ... In Eclipse selber kann ich die Applikation ohne ...
    (de.comp.lang.java)
  • Re: [Eclipse] problem with deploying
    ... > If you are using Eclipse 3 then you can use the Fat Jar Eclipse Plug-In. ... >> to launch the JAR file from the command line, ... >> I could figure out the exact command line it was using, ...
    (comp.lang.java.programmer)
  • Re: How to update a jar file for one source file change?
    ... I'm new to java, so, I may get terminilogy wrong, bear with me. ... we've got a BIG jar file that includes thousands of classes. ... updated java source code was not being used. ...
    (comp.lang.java.programmer)
  • Re: Not too clear on the libraries available at run time
    ... My Java programs work beautifully when I start them from inside ... JBuilder, NetBeans or Eclipse. ... needed library in the jar file". ... You can package all your libs with your app in one unique jar file. ...
    (comp.lang.java.programmer)
  • Re: App running from JAR cant find files
    ... I actually didn't include the html files in the Jar by mistake. ... Notice that you're not using getResource() in the ImageIcon ... getResource, on the other hand, is looking in the jar file. ...
    (comp.lang.java.help)