2

Cannot find and choose Main-Class creating a JavaFX-Application artefact.

https://www.jetbrains.com/help/idea/content-roots.html https://www.youtube.com/watch?v=Ip5EJoF4pDg ...

Screenshot 1 enter image description here

Screenshot 2 enter image description here

Screenshot 3 enter image description here

Mr. T
  • 35
  • 7

1 Answers1

2

It's a known bug. You can type the class name manually as a workaround.

CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • Thank you, but doing so I get another error: Error:Java FX Packager: Can't build artifact - fx:deploy is not available in this JDK – Mr. T Sep 05 '19 at 21:48
  • 1
    @Mr.T it's a well known issue: https://stackoverflow.com/questions/53450011/build-and-deploy-javafx-application-using-java11 . – CrazyCoder Sep 05 '19 at 21:49
  • Thank you very much! However, I still don't understand how my initial problem, to create JavaFX-Jar, can be solved. – Mr. T Sep 06 '19 at 05:11
  • 1
    Use Maven or Gradle to build the jars: https://stackoverflow.com/questions/52569724/javafx-11-create-a-jar-file-with-gradle . – CrazyCoder Sep 06 '19 at 05:12
  • Tanks a lot! But, I guess that all this is too complex for my small hobby project. It makes no fun any more. But nevertheless tank you very much and I hope that users with a little more proficiency will be able to use your tips more than I am. – Mr. T Sep 07 '19 at 06:27