Skip to content

Latest commit

 

History

History

Gradle

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Modular samples for Visual Studio Code

JavaFX 17 samples to run from Visual Studio Code with different options and build tools.

Version Visual Studio Code: 1.63.0 or higher.

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

Gradle

For the first time only:

To run the JavaFX application, you can open the Gradle Projects explorer, expand hellofx > Tasks > application and run the Gradle task: run.

Run

Or alternatively run from terminal:

On Linux or Mac run:

cd IDE/VSCode/Modular/Gradle/hellofx
./gradlew run

On Windows run:

cd IDE\VSCode\Modular\Gradle\hellofx
.\gradlew.bat run

Custom Runtime

To create and run a custom JRE, you can open the Gradle Projects explorer, expand hellofx > Tasks > build and run the Gradle task: jlink. The executable file will be generated at build/image/bin/hellofx (Or build\image\bin\hellofx.bat on Windows).

Or alternatively run from terminal:

On Linux or Mac run:

cd IDE/VSCode/Modular/Gradle/hellofx
./gradlew jlink
build/image/bin/hellofx

On Windows run:

cd IDE\VSCode\Modular\Gradle\hellofx
.\gradlew.bat jlink
build\image\bin\hellofx.bat