简体   繁体   English

无法在Linux上的Netbeans中创建JavaFX项目

[英]Can't create JavaFX project within Netbeans on Linux

so I'm struggling with this issue quite a while now. 所以我在这个问题上苦苦挣扎了一段时间。 I want to create a new JavaFX project within Netbeans, but I don't have the option to choose JavaFX from the list. 我想在Netbeans中创建一个新的JavaFX项目,但是我没有选择从列表中选择JavaFX的选项。 Since I have the most recent java version, JavaFX should be included in the SDK right? 由于我拥有最新的Java版本,因此JavaFX应该包含在SDK中,对吗? I also looked up if I have the jfxrt.jar in the directory /usr/local/jdk1.8.0_111/jre/lib/ext and I do. 我还查找了是否在目录/usr/local/jdk1.8.0_111/jre/lib/extjfxrt.jar ,我知道了。 So how comes that I can't create a regular JavaFX project? 那么为什么无法创建常规JavaFX项目呢? Am I missing out on something? 我错过了什么吗?

$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

Thank you in advance! 先感谢您!

For those who are also having the same problem (can't find JAVAFX plugin(s) in the 'Installed' tab, see @Fabian comment answer): 对于那些也有相同问题的人(在“已安装”标签中找不到JAVAFX插件,请参阅@Fabian注释答案):

  1. Go to 'Settings' tab (in Tools -> Plugins) 转到“设置”标签(在工具->插件中)
  2. Check both boxes 'Certified Plugins' and 'Netbeans Distribution'. 选中“ Certified Plugins”和“ Netbeans Distribution”两个框。
  3. Go to 'Available Plugins' and press 'Check for Newest'. 转到“可用插件”,然后按“检查最新版本”。
  4. You should see JAVAFX plugin(s). 您应该看到JAVAFX插件。
  5. Install them and restart your IDE. 安装它们并重新启动IDE。

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

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