2
votes

I'm exporting my swing application as a runnable jar file. So far so good. I noticed that in every export all the unit-tests, sources and javadoc for each library are included. which means a big overhead for the application. How can I define only to export the used class files, and only the core-libraries without javadoc?

This application run not with maven.

thanks

//edit, some pictures: As example guava, who is saved in 3 jars ( code, sources, javadoc) in my lib folder.

lib folder

My build path settings where i define the sources and javadoc buildpath settings

and the with 7-zip opened jar, where sources and javadocs are included, but shouldn't be. jar

1
Did you get this working? - Gentleman
Nope, switched to maven ;) - MemLeak

1 Answers

2
votes

Right-click on the project,choose Properties > Java Build path > Order and Export,or you can pick what you want to export from the export wizard.

//EDIT:
Choose a lighter jar,e.g,you can download Guava from http://search.maven.org/remotecontent?filepath=com/google/guava/guava/14.0.1/guava-14.0.1.jar instead of your jar which contains source and doc file.That's the reason that makes your project so large.