jfxrt.jar not in JDK 1.8?

后端 未结 4 1635
走了就别回头了
走了就别回头了 2021-02-19 00:10

I just updated my JDK to the JDK 1.8 because i couldnt find the jfxrt.jar needed by java FX in the 1.7 version.

I downloaded the JDK from here: http://www.oracle.com/tec

相关标签:
4条回答
  • 2021-02-19 00:20

    You have to add requires jfxrt; to your module-info if you have trouble after adding jfxrt.jar

    0 讨论(0)
  • 2021-02-19 00:23

    For me on OSX it's under jdk1.8.0_05.jdk/Contents/Home/jre/lib/ext/jfxrt.jar. I'd guess it's in an analogous place on your machine. Try /usr/java/jdk1.8.0_05/jre/lib/ext/jfxrt.jar

    0 讨论(0)
  • 2021-02-19 00:34

    From the above comments, i tried this.

    I added jfxrt.jar(Downloaded JDK) to PC. In eclipse, right click project --> properties --> Libraries --> Add external jar and choose the jar file.

    The error went away.

    0 讨论(0)
  • 2021-02-19 00:41

    Am using linuxmint 18.1 and i had the same issue. i realized that the open jdk i had didn't have the jfxrt.jar library. Download another jdk from oracle and then install it. Remember to change the path in the netbeans.conf file in the netbeans installation folder.

    0 讨论(0)
提交回复
热议问题