OpenJDK不适用于javafx [英] OpenJDK does not work with javafx
问题描述
我刚刚在笔记本电脑上安装了Fedora 21并安装了OpenJDK8(JDK),Netbeans和SceneBuilder。当我创建一个新的JavaFX项目时,会出现以下消息:
如果我在管理平台下添加Oracle Java 8,我只能修复它。我怎样才能用OpenJDK完成这些工作?
I have just installed Fedora 21 on my laptop and installed OpenJDK8(JDK), Netbeans and SceneBuilder.When I create a new JavaFX project the following message appears: I can only fix it if I add the Oracle Java 8 under Manage Platform. How can I get these done with OpenJDK only?
推荐答案
你从哪里安装openjdk?如果使用来自fedora的那个,它没有javafx,它从fedora的角度来看是好的,因为JavaFX - 虽然它是一个openjdk项目 - 不是jsred,因此不必包含它。
Where from did you install openjdk? If used the one coming from fedora it does NOT have javafx with it which sort of is ok from the fedora point of view because JavaFX - although it is an openjdk project - is not jsred and so there's not must to include it.
IIRC Fedora和其他Linux发行版的问题在于它们没有得到一些源自Source的本地部分,这是他们发布的所有内容所需要的!
IIRC the problem for Fedora and other linux distros was/is that they did not get some of the native parts built from Source which is something they require for all stuff they ship!
这篇关于OpenJDK不适用于javafx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!