问题
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