Migration to JDK 11 + JavaFX 11 giving RuntimeException

前端 未结 4 779
死守一世寂寞
死守一世寂寞 2020-12-06 05:54

I\'ve got an application on Java 8 + JavaFX that I want to migrate to Java 11. The basis aim is to give a .jar to users on a network and so they can use this little applicat

4条回答
  •  無奈伤痛
    2020-12-06 06:27

    It should also be noted that if you are using Eclipse (Which I know you are not in this case) and Maven, adding dependencies for the platform specific javafx-graphics libraries (win, mac, linux) will cause this issue if you try to build through maven. I'm not entirely sure why.

    I was banging my head against a wall trying to just do a clean javafx:run in the goals before I just removed the platform dependent dependencies in the pom and it finally ran.

提交回复
热议问题