IntelliJ include external JARS in JavaFX JAR file

前端 未结 1 1305
悲&欢浪女
悲&欢浪女 2021-02-10 19:17

How can I include all the jar files under lib in my main jar file produced ?

Is IntelliJ meant to create JAR files or not ? Cause I can\'t seem to make it work. Here are

相关标签:
1条回答
  • 2021-02-10 19:43

    Go like this for one jar:

    Right click > Open Module Settings > Artifacts > + > JAR > From module with dependencies

    Then choose main class and select EXTRACT TO TARGET JAR, then press ok. And close all dialogs applying and ok'ing.

    When done coding, goto Build > Build Artifacts > ...jar > Build.

    The jar should be there. Make sure to vipe your /out before.

    0 讨论(0)
提交回复
热议问题