无法在IntelliJ IDEA中找到或加载主类来制作Javafx jar [英] Can't find or load main class to make a Javafx jar in IntelliJ IDEA

查看:179
本文介绍了无法在IntelliJ IDEA中找到或加载主类来制作Javafx jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IntellIJ IDEA中制作了我的第一个Javafx应用程序,它运行正常,但是我遇到了问题.

I made my first Javafx Application in IntellIJ IDEA it runs perfectly but i have a problem.

我无法为此应用程序创建可执行jar. 更明确地说,每当我尝试搜索主类时,我都无法在工件选项卡中找到它.

I can't make an executable jar for this Application. To be more explicit whenever i try to search for the main class i can't find it in the artifact tab.

我尝试制作一个普通的jar(在工件菜单中,它们为您提供了普通jar和javafx应用程序jar之间的选择),并且检测到主程序.

I tried making a normal jar (in the artifacts menu they give you the choice between normal jar and javafx application jar) and the main is detected.

推荐答案

这是已知问题.您可以手动输入完全限定的类名称作为解决方法(foo.bar.MyClass).

It's a known issue. You can type the fully qualified class name manually as the workaround (foo.bar.MyClass).

这篇关于无法在IntelliJ IDEA中找到或加载主类来制作Javafx jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆