JAVAFx Build Failed

后端 未结 6 887
死守一世寂寞
死守一世寂寞 2020-12-17 00:50

I created an app with JavaFx for windows, which is really cool. I can run it from e(fx)clipse, everthing works fine, but I can\'t make a jar file from the project. I can exp

6条回答
  •  难免孤独
    2020-12-17 01:34

    What I did on Windows 8.1, Java 1.8.0_192, Eclipse Photon (4.8.0) and e(fx)clipse 3.3.0.

    1. Uninstall all (incremental) Java installations (JDK, JRE)
    2. Install latest (needed) Java JDK with JRE
    3. Set default Java to JDK in Eclipse (Windows -> Preferences -> Java -> Installed JRE)
    4. Set Separate JRE to JDK in Eclipse (Run -> External Tools -> External Tools Configurations)
    5. Clean project
    6. build.fxbuild -> ant build.xml and run

提交回复
热议问题