Hello,

I try to make a simple class working in Netbeans 11.0 with java12/javaFx12.

My configuration is:
=== Java Environment ===
Path=C:\java_lib\jdk-12.0.1\bin;
     C:\java_lib\javafx-sdk-12.0.1\bin;
     C:\java_lib\javafx-jmods-12.0.1;
JAVA_HOME=C:\java_lib\jdk-12.0.1

I follow the tutorial https://openjfx.io/openjfx-docs/ and use the part:
Netbeans and JavaFX - non-modular with IDE. The last step gives the error
below, while it should work according to the manual.

This error appears when I run the class within the IDE, but also when I run
the command on the commandline.

IDE:
Error occurred during initialization of boot layer
java.lang.module.FindException: *Module javafx.controls not found*
C:\Users\ecusters\AppData\Local\NetBeans\Cache\11.0\executor-snippets\run.xml:111:
The following error occurred while executing this line:
C:\Users\ecusters\AppData\Local\NetBeans\Cache\11.0\executor-snippets\run.xml:68:
Java returned: 1
BUILD FAILED (total time: 0 seconds)

Commandline:

c:\java_lib\jdk-12.0.1/bin/java -p
C:\java_lib\javafx-jmods-12.0.1;C:\java_lib\javafx-jmods-12.0.1;C:\java_lib\javafx-sdk-12.0.1\lib\javafx-swt.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.base.jar;
*C:\java_lib\javafx-sdk-12.0.1\lib\javafx.controls.jar;*C:\java_lib\javafx-sdk-12.0.1\lib\javafx.fxml.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.graphics.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.media.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.swing.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.web.jar
-cp
C:\java_lib\javafx-sdk-12.0.1\lib\javafx-swt.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.base.jar;
*C:\java_lib\javafx-sdk-12.0.1\lib\javafx.controls.jar;*C:\java_lib\javafx-sdk-12.0.1\lib\javafx.fxml.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.graphics.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.media.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.swing.jar;C:\java_lib\javafx-sdk-12.0.1\lib\javafx.web.jar;D:\NbProjects\FxApp01_c\dist\FxApp01_c.jar
fxapp01_c.FxApp01_c

*Error: JavaFX runtime components are missing, and are required to run this
application*

I cannot find a way to solve this issue. Has anyone a suggestion? That
would be great help!

Regards,

Eef





-- 
Met vriendelijke groeten,

E. Custers,
Oracle & Java Ontwikkelaar / Senior Oracle DBA
OrendaFlex BV
Orenda iT Services BV
00 31 6 5499 2250
====================================
Oracle database Beheer & Data Management
====================================

Reply via email to