2017-02-13 76 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