Skip to content

Latest commit

 

History

History

Java

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Modular samples for Eclipse

JavaFX samples to run from Eclipse with different options and build tools

Download JDK 17 or later for your operating system. Make sure JAVA_HOME is properly set to the JDK installation directory.

Java

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

Clone the sample and open the project with Eclipse.

Run with Run configurations -> Java Application -> modHelloFX

To create and run a custom JRE, from terminal:

On Linux or Mac run:

cd IDE/Eclipse/Modular/Java/HelloFX
export PATH_TO_FX_MODS=path/to/javafx-jmods
$JAVA_HOME/bin/jlink --module-path $PATH_TO_FX_MODS:bin/hellofx --add-modules=hellofx --output jre
jre/bin/java -m hellofx/org.openjfx.MainApp

On Windows run:

cd IDE\Eclipse\Modular\Java\HelloFX
set PATH_TO_FX_MODS="path\to\javafx-jmods"
jlink --module-path "%PATH_TO_FX_MODS%;bin\hellofx" --add-modules=hellofx --output jre
jre\bin\java -m hellofx/org.openjfx.MainApp