简体   繁体   中英

IntelliJ include external JARS in JavaFX JAR file

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM