简体   繁体   English

查找Windows的Javafx jar文件

[英]Finding javafx jar file for windows

Does anyone know where I can find the jar file for the javafx package for windows? 有谁知道我在哪里可以找到Windows的javafx包的jar文件? I can only find zip files and exe files. 我只能找到zip文件和exe文件。 Can someone answer with a link to download the package? 有人可以提供下载软件包的链接吗?

JavaFX与Oracle最新的JDK / JRE一起提供。

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. 您需要首先安装javafx_sdk-2_0_1-windows-i586.exe,它将通过defualt C驱动器在您的计算机上安装JavaFx 2 sdk。 You can get jfxrt.jar at following location C:\\Program Files\\Oracle\\JavaFX Runtime 2.0\\lib\\jfxrt.jar 您可以在以下位置C:\\ Program Files \\ Oracle \\ JavaFX Runtime 2.0 \\ lib \\ jfxrt.jar获取jfxrt.jar。

you have to refer this in classpath of your project. 您必须在项目的类路径中引用它。

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或更低版本,则找不到它。

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

Eclipse - Build Path Eclipse-构建路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM