Can't find or load main class to make a Javafx jar in IntelliJ IDEA

耗尽温柔 提交于 2020-01-30 08:58:26

问题


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

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.

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.


回答1:


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



来源:https://stackoverflow.com/questions/56994109/cant-find-or-load-main-class-to-make-a-javafx-jar-in-intellij-idea

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