IntelliJ include external JARS in JavaFX JAR file

狂风中的少年 提交于 2020-01-12 05:45:31

问题


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 some screens from my setup:

And the result:

Could somebody explain to me why the other JAR file is generated outside my main JAR file?

AM I supposed to ship 2 JARS?


回答1:


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.



来源:https://stackoverflow.com/questions/31611848/intellij-include-external-jars-in-javafx-jar-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!