jfxrt。jar不在JDK 1.8中?

时间:2023-01-05 17:00:36

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,因为我找不到jfxrt。java FX在1.7版本中需要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?

有谁知道为什么,我读到这个版本应该包含它。我能解决这个问题吗?

2 个解决方案

#1


20  

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

对于OSX上的我,它在jdk1.8.0_05 jdk/Contents/Home/jre/lib/ext/jfxrt.jar下面。我猜它在你的机器上类似的地方。尝试/usr/java/jdk1.8.0_05 / jre / lib / ext / jfxrt.jar

#2


1  

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.

我使用的是linuxmint 18.1,我也有同样的问题。我意识到我的开放jdk没有jfxrt。jar库。从oracle下载另一个jdk,然后安装它。记住要更改netbeans中的路径。在netbeans安装文件夹中的conf文件。

#1


20  

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

对于OSX上的我,它在jdk1.8.0_05 jdk/Contents/Home/jre/lib/ext/jfxrt.jar下面。我猜它在你的机器上类似的地方。尝试/usr/java/jdk1.8.0_05 / jre / lib / ext / jfxrt.jar

#2


1  

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.

我使用的是linuxmint 18.1,我也有同样的问题。我意识到我的开放jdk没有jfxrt。jar库。从oracle下载另一个jdk,然后安装它。记住要更改netbeans中的路径。在netbeans安装文件夹中的conf文件。