简体   繁体   English

jfxrt.jar 不在 JDK 1.8 中?

[英]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.

相关问题 Java 8中包含jfxrt.jar吗? - Is jfxrt.jar included in Java 8? 在运行时找不到jfxrt.jar(javafx) - Cannot find jfxrt.jar (javafx) at runtime rt.jar 和 jfxrt.jar 的等效库与最新版本的 jdk17 和 javafx17 中的库是什么? - What is the equivalent library for rt.jar and jfxrt.jar with the library in the latest version of jdk17 and javafx17? 我可以将jfxrt.jar与我的应用程序一起部署吗(技术上)? - May I deploy jfxrt.jar with my application (technically)? Eclipse Kepler(SR2)插件中jfxrt.jar的用法 - Usage of jfxrt.jar in Eclipse Kepler (SR2) Plugin JavaFX 运行时 JAR 文件 jfxrt.jar 在 Linux 上的位置是什么? - What's the location of the JavaFX runtime JAR file, jfxrt.jar, on Linux? java.nio.file.NoSuchFileException:/home/user/java/8.0.181-oracle/jre/lib/jfxrt.jar使用`sbt runMain`执行scala程序时 - java.nio.file.NoSuchFileException: /home/user/java/8.0.181-oracle/jre/lib/jfxrt.jar while executing scala program using `sbt runMain` Java 9 javapacker在创建bss时找不到jfxrt.jar。 在Linux下的“createbss”模式下似乎完全被打破了。 如何避免这个bug? - Java 9 javapacker can't find jfxrt.jar while creating bss'. Seems totally broken in “createbss” mode under Linux. How to avoid the bug? 如何使用 JDK 1.8 将 Hadoop AWS jar 添加到 Spark 2.4.5? - How to add Hadoop AWS jar to Spark 2.4.5 with JDK 1.8? Eclipse JDK 1.8无法正常工作 - Eclipse JDK 1.8 not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM