java 为windows查找javafx jar文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15777777/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Finding javafx jar file for windows
提问by i .
Does anyone know where I can find the jar file for the javafx
package for windows? I can only find zip files and exe files. Can someone answer with a link to download the package?
有谁知道我在哪里可以找到javafx
Windows 软件包的 jar 文件?我只能找到 zip 文件和 exe 文件。有人可以通过链接来回答下载包吗?
回答by Puce
JavaFX comes together with the latest JDK/ JRE from Oracle.
JavaFX 与来自 Oracle 的最新 JDK/JRE 一起提供。
回答by vaishali33
You need to first install the javafx_sdk-2_0_1-windows-i586.exe That will install JavaFx 2 sdk on your machine at by defualt C drive. You can get jfxrt.jar at following location C:\Program Files\Oracle\JavaFX Runtime 2.0\lib\jfxrt.jar
您需要先安装 javafx_sdk-2_0_1-windows-i586.exe 这将通过默认 C 驱动器在您的机器上安装 JavaFx 2 sdk。您可以在以下位置获取 jfxrt.jar C:\Program Files\Oracle\JavaFX Runtime 2.0\lib\jfxrt.jar
you have to refer this in classpath of your project.
您必须在项目的类路径中引用它。
回答by kelvin LIANG
Since java 1.7 the javafx is embedded in JRE/JDK, you can find the jfxrt.jar
由于 java 1.7 javafx 嵌入在 JRE/JDK 中,您可以找到 jfxrt.jar
under directory C:\Program Files\Java[jdk1.8.0_25]\jre\lib\ext (conform to your jdk location)
在目录 C:\Program Files\Java[jdk1.8.0_25]\jre\lib\ext 下(符合你的 jdk 位置)
Note, if you are using java 1.6 or below, you will not find it.
请注意,如果您使用的是 java 1.6 或更低版本,您将找不到它。
回答by Murat Gungor
It comes with JRE - Currently, I have 1.8 In Windows - 1. Visit this path C:\Program Files\Java\jre1.8.0_162\lib 2. Add "jfxswt.jar" to libraries
它带有 JRE - 目前,我在 Windows 中有 1.8 - 1. 访问此路径 C:\Program Files\Java\jre1.8.0_162\lib 2. 将“jfxswt.jar”添加到库中
Make sure also you have the same JRE
确保你也有相同的 JRE