if you want to use eclipse export to create a runnable jar, but you want to control which files to include and which files to exclude, follow the following steps:

  1. file > export > runnable jar file > next
  2. configure export options
  3. check the "save as ant script" option > finish
  4. edit the ant script to include/exclude files
  5. right click on the ant script > run as > ant build

that's it!


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.

choose a lighter jar,e.g,you can download guava from instead of your jar which contains source and doc file.that's the reason that makes your project so large.

Related Query

More Query from same tag