javafx 包 javafx.embed.swt 不在 java8u5 中 [英] javafx package javafx.embed.swt not in java8u5
问题描述
我想使用 javafx.embed.swt 包中的 FXCanvas,如下例所示:http://docs.oracle.com/javafx/2/swt_interoperability/jfxpub-swt_interoperability.htm# 但我只能找到 javafx.embed.swing 包.javafx.embed.swt 根本不存在.我究竟做错了什么 ?我使用java8u5.是否有特殊的下载必需品,或者是否有包含该软件包的不同版本的 java??
I'd like to use FXCanvas from the package javafx.embed.swt as shown in this example: http://docs.oracle.com/javafx/2/swt_interoperability/jfxpub-swt_interoperability.htm# But all I can find is javafx.embed.swing package. javafx.embed.swt is simply not existant. What am I doing wrong ? I use java8u5. Is there a special download nessessary or is there a different version of java that contains that package ??
感谢任何提示!托尔斯滕
thanks for any hint! Thorsten
推荐答案
这是因为包 javafx.embed.swt
是从 /lib/ext/jfxrt.jar 中移出的
代码> 到 /lib/jfxswt.jar
.您需要最后显式添加它才能看到 FXCanvas 类.
这是问题的 链接:Separate javafx.embed.swt来自 jfxrt.jar
This because the package javafx.embed.swt
was moved from the /lib/ext/jfxrt.jar
to /lib/jfxswt.jar
. You need to add this last explicitly to see the FXCanvas class.
This is the link to the issue: Separate javafx.embed.swt from jfxrt.jar
这篇关于javafx 包 javafx.embed.swt 不在 java8u5 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!