2
votes

I'm on linux mint 18 machine and got installed the openjdk 8 and the openjfx packages but when I try to execute a demo javafx project on the netbeans IDE what I get is this

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

(same java ugly error code)...

impl.xml:2096: Error: Bundler "WebStart JNLP Bundler" (jnlp) failed to produce a bundle.

2
I think the message says it all: "requires the java deployment toolkit, which is not included in this distribution". What is your question? - Axel
Can you try to create a example project stackoverflow.com/help/mcve ? Does this happen with the OracleJDK too? - FibreFoX
I haven't acces to the OracleJDK, I can only use openjdk and openjfx and got that problem @FibreFoX. - Daniel Vega
@Axel I understand the message but I can't find nothing on the internet about how to install the java deployment toolkit, I don't know how to do that - Daniel Vega
Google showed me this result. Does it work for you? hongouru.blogspot.de/2015/09/… - Axel

2 Answers

1
votes

As far as I know that's a bug in openjdk / openjfx, but I've found a workaround:

In NetBeans, go to the Files tab and Locate the project.properties file in the nbproject folder inside the project folder. Open the file and change the following line

javafx.deploy.includeDT=true

to this:

javafx.deploy.includeDT=false
0
votes

I found this and solved the problem for me (Linux Mint 18) :

Currently in Debian and Ubuntu (probably others) JavaFX is a separate package >from the OpenJDK (openjdk-8-jdk) and so needs to be installed:

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