I doubt while exporting project to jar in eclipse, it will include the external jar files in it.
The wizard shows it will only include source files, class files and classpaths.
Where as you can use other options like
1) If its hard and fast to build it through eclipse. You can use eclipse plugin called as Fat-Jar. Find more information from this link Fat Jar Eclipse Plugin 2) My suggestion to your Apache Ant to build or export your project into runnable jar file.
colin shuker wrote:Hi, I have an application in eclipse that has mail.jar and activation.jar added to its build path.
When I export the project into a jar file (windows xp) and run it, I get:
in gererally java.lang.NoClassDefFoundError is caused by JVM can't found the binary class file on runtime, JDK 1.5 does not include mail.jar and activation.jar in their standard install library. So you need invoke the two jar to your classpath when run java application.