How can I create a .jar file?

前端 未结 6 1110
谎友^
谎友^ 2021-01-15 15:33

In the tutorial I found out that jar files can be created in the following way:

jar cf jar-file input-file(s)

However, it was not clear wha

6条回答
  •  梦毁少年i
    2021-01-15 16:37

    regarding your external dependencies, this will NOT work unless you compile in the dependencies as .class files, or use something like FatJar http://fjep.sourceforge.net/ to add them into one big jar.

提交回复
热议问题