我在linux mint 18机器上安装了openjdk 8和openjfx软件包但是当我尝试在netbeans IDE上执行一个演示javafx项目时,我得到的是这个
JNLP failed : Error: -includedt requires the java deployment toolkit, which is not included in this distribution
com.sun.javafx.tools.packager.PackagerException: Error: -includedt requires the java deployment toolkit, which is not included in this distribution
(同样java丑陋的错误代码)......
impl.xml:2096: Error: Bundler "WebStart JNLP Bundler" (jnlp) failed to produce a bundle.
答案 0 :(得分:1)
据我所知a bug in openjdk / openjfx,I've found a workaround:
在NetBeans中,转到“文件”选项卡,然后在项目文件夹内的nbproject文件夹中找到project.properties文件。打开文件并更改以下行
android:focusable="true"
android:focusableInTouchMode="true"
到此:
javafx.deploy.includeDT=true
答案 1 :(得分:0)
我找到了这个并解决了我的问题(Linux Mint 18):
目前在Debian和Ubuntu(可能是其他人)中,JavaFX是一个单独的包>来自OpenJDK(openjdk-8-jdk),所以需要安装:
sudo apt-get install libopenjfx-java libopenjfx-java-doc