Java: export to an .jar file in eclipse

前端 未结 4 1019
广开言路
广开言路 2020-11-22 16:42

I\'m trying to export a program in Eclipse to a jar file.

In my project I have added some pictures and PDF:s. When I\'m exporting to jar file, it seems that only th

4条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 17:07

    FatJar can help you in this case.

    In addition to the"Export as Jar" function which is included to Eclipse the Plug-In bundles all dependent JARs together into one executable jar.
    The Plug-In adds the Entry "Build Fat Jar" to the Context-Menu of Java-projects

    This is useful if your final exported jar includes other external jars.

    If you have Ganymede, the Export Jar dialog is enough to export your resources from your project.

    After Ganymede, you have:

    Export Jar

提交回复
热议问题