IntelliJ include external JARS in JavaFX JAR file

匿名 (未验证) 提交于 2019-12-03 03:04:01

问题:

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.



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