2017-02-13 81 views
1

我在linux mint 18机器上安装了openjdk 8和openjfx软件包,但是当我尝试在NetBeans IDE上执行演示javafx项目时,我得到的是这个Java FX不能在linux-mint上工作18

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

我认为这个消息说明了这一切:“需要java部署工具包,它不包含在这个发行版中”。你的问题是什么? – Axel

+0

你可以尝试创建一个示例项目http://stackoverflow.com/help/mcve? OracleJDK也会发生这种情况吗? – FibreFoX

+0

我没有访问OracleJDK,我只能使用openjdk和openjfx,并得到了@FibreFoX的问题。 –

回答

0

据我所知,这是a bug in openjdk/openjfx,但是I've found a workaround

在NetBeans中,转到“文件”选项卡,然后在项目文件夹内的nbproject文件夹中找到project.properties文件。打开文件,并更改以下行

javafx.deploy.includeDT=true 

这样:

javafx.deploy.includeDT=false 
0

我发现了这一点,并解决了这个问题对我来说(Linux Mint的18):

目前在Debian和Ubuntu(可能是其他)JavaFX是一个独立的软件包,来自OpenJDK(openjdk-8-jdk),因此需要安装:

sudo apt-get install libopenjfx-java libopenjfx-java-doc