从智能IDEA创建可运行的jar

时间:2018-09-24 08:41:15

标签: java intellij-idea jar executable-jar

我有一个项目,可以在智能IDEA中将其作为应用程序运行。但是,当打包为.jar时,我无法运行创建的.jar

我认为我的设置中可能缺少某些内容,但无法解决。我已经阅读了许多无法解决我的问题的答案

IntelliJ IDEA工件设置如下:

enter image description here

清单文件:

enter image description here

工件构建结果:

enter image description here

运行.jar文件时出错

enter image description here

该类确实存在,因为我可以从IntelliJ IDEA轻松地运行它,并查看一些System.out消息:

enter image description here

enter image description here

0 个答案:

没有答案
相关问题