[ S O L V E D ] - Error building New Project using Netbeans and JavaFX (Internal error. Missing resources | Error: -includedt requires the java deployment toolkit)

Can' t build JavaFX Project on NetBeans 8.0.2 (Linux & Windows) better solution.


If you are trying to build a New JavaFX Project with Netbeans and Java JDK 8 or SDK 8, you probably are facing the problem that says:


Internal error. Missing resources [/resources/web-files/javafx-loading-100x100.gif]

nbproject/jfx-impl.xml:3438: The following error occurred while executing this line:

nbproject/jfx-impl.xml:1465: The following error occurred while executing this line:
nbproject/jfx-impl.xml:1465: The following error occurred while executing this line:
nbproject/jfx-impl.xml:2055: Error: -includedt requires the java deployment toolkit, which is not included in this distribution
BUILD FAILED


This error occurs because there is a call to the Java Deployment Toolkit "jdt" directory when building the project, but the Java Deployment Toolkit is not present in the JDK 8.

The solution presented here is very simple: 


  • Open your properties file
  • Find the line that contains javafx.deploy.includeDT=true 
  • Change it to javafx.deploy.includeDT=false
  • Save and build back your project.









Now you are good to go.

I've posted another way to fix this, but this one is cleaner as it is a more modular approach. I'll leave the other posted here.


8 comments:

  1. Thanks for sharing - that saved me some time :)

    ReplyDelete
  2. thanks a lot ! Very easy solution;

    ReplyDelete
  3. Thank you very much for your solution :D

    ReplyDelete
  4. My NetBeans config file is empty by default, could you supply the full line or section this option is a part of? The online documentation says nothing about how to set default project options, and just pasting in the above doesn't work.

    Thanks in advance.

    ReplyDelete
  5. Thank you very much for this! It saved me a lot of hassle :D

    ReplyDelete
  6. Where it's located the properties file and what's its name??

    ReplyDelete