Skip to content

Latest commit

 

History

History
 
 

Java

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Modular samples for NetBeans

JavaFX 11 samples to run from NetBeans with different options and build tools

Version NetBeans 10.0

Download an appropriate JDK 11 for your operating system. Make sure JAVA_HOME is properly set to the Java 11 installation directory.

The samples assume NetBeans 10 runs on JDK 11 (this can be set editing the etc/netbeans.conf file and setting netbeans_jdkhome="/path/to/jdk11").

Download JavaFX jmods for your operating system and unzip to a desired location.

Java

For the first time only:

  • Download JavaFX SDK for your operating system and unzip to a desired location.

  • Open NetBeans and create a global Library under NetBeans -> Tools -> Libraries -> New Library. Name it JavaFX11 and include the jars under the lib folder from JavaFX 11 (but not the src.zip file).

  • Create a global Library under NetBeans -> Tools -> Libraries -> New Library. Name it JavaFXMODS11 and include the folder JavaFX jmods 11.

Clone the sample, open it with NetBeans, and make sure the paths for Java 11 and JavaFX 11 match those on your machine.

Clean and build with regular button to create a custom JRE. Run with regular button.

To run the custom JRE on Mac:

dist/jlink/HelloFX/bin/java -m hellofx/org.openjfx.MainApp

To run the custom JRE on Windows:

dist\jlink\HelloFX\bin\java -m hellofx/org.openjfx.MainApp