[英]jfxrt.jar not in JDK 1.8?
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.我刚刚将我的 JDK 更新为 JDK 1.8,因为我在 1.7 版本中找不到 java FX 所需的 jfxrt.jar。
I downloaded the JDK from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html我从这里下载了 JDK: http : //www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Specifically the version: jdk-8u5-linux-i586.rpm具体版本:jdk-8u5-linux-i586.rpm
I use opensuse 13.1 by the way.顺便说一下,我使用的是 opensuse 13.1。
Now after the installation my usr/java/jdk1.9_05/lib still does not contain the jfxrt.jar.现在安装后我的 usr/java/jdk1.9_05/lib 仍然不包含 jfxrt.jar。
Has anybody an idea why, I read that this version should actually contain it.有没有人知道为什么,我读到这个版本实际上应该包含它。 Can I fix this problem putting the jar in ther manually?
我可以手动解决这个问题吗?
For me on OSX it's under jdk1.8.0_05.jdk/Contents/Home/jre/lib/ext/jfxrt.jar
.对于我在 OSX 上,它位于
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
试试
/usr/java/jdk1.8.0_05/jre/lib/ext/jfxrt.jar
Am using linuxmint 18.1 and i had the same issue.我正在使用 linuxmint 18.1,我遇到了同样的问题。 i realized that the open jdk i had didn't have the jfxrt.jar library.
我意识到我的开放 jdk 没有 jfxrt.jar 库。 Download another jdk from oracle and then install it.
从 oracle 下载另一个 jdk 然后安装它。 Remember to change the path in the netbeans.conf file in the netbeans installation folder.
请记住更改 netbeans 安装文件夹中的 netbeans.conf 文件中的路径。
From the above comments, i tried this.从上面的评论,我试过这个。
I added jfxrt.jar(Downloaded JDK) to PC.我将 jfxrt.jar(下载的 JDK)添加到 PC。 In eclipse, right click project --> properties --> Libraries --> Add external jar and choose the jar file.
在eclipse中,右键项目-->属性-->库-->添加外部jar,选择jar文件。
The error went away.错误消失了。
You have to add requires jfxrt;
你必须添加
requires jfxrt;
to your module-info if you have trouble after adding jfxrt.jar如果在添加 jfxrt.jar 后遇到问题,请添加到您的模块信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.