How do I create a jar file, which includes xml and html files?

后端 未结 5 979
猫巷女王i
猫巷女王i 2021-01-14 17:54

I am trying to create a jar file which includes some class and java files needed, but I also would like to include some extra xml, xsl, html, txt (README) files.

I a

5条回答
  •  借酒劲吻你
    2021-01-14 18:37

    I just added all the files into my Eclipse project (including the txt, html, xml, etc files).

    Then I used Eclipse to File->Export->Jar File->Next Check the "Export Java source files and resources" box.

    Done.

提交回复
热议问题