Welcome to the world of JavaFX, where creating graphical user interfaces is as easy as saying “Hello, World!” This guide will take you through the steps to run HelloFX samples, whether you’re using the command line or an integrated development environment (IDE). Let’s dive in!
HelloFX Samples
The HelloFX samples repository is a collection of simple HelloWorld applications designed with JavaFX. Each sample can be executed with different options and build tools. You can find useful documentation on how to use each sample here.
Command Line
You can run the HelloFX samples directly from your command line. Below are two categories of samples:
Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
None HelloFX project Modular project to run on command line.
Maven HelloFX project Modular project to run with Maven.
Gradle HelloFX project Modular project to run with Gradle.
Non-Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
None HelloFX project Non-modular project to run on command line.
Maven HelloFX project Non-modular project to run with Maven.
Gradle HelloFX project Non-modular project to run with Gradle.
IDEs
If you’d prefer to use an IDE, the HelloFX samples can be executed with various development environments. Here’s a breakdown of the options.
IntelliJ
IntelliJ has a wealth of support for both modular and non-modular samples:
Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
Java HelloFX project Modular project to run from IntelliJ.
Maven HelloFX project Modular project to run from IntelliJ, with Maven.
Gradle HelloFX project Modular project to run from IntelliJ, with Gradle.
Non-Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
Java HelloFX project Non-modular project to run from IntelliJ.
Maven HelloFX project Non-modular project to run from IntelliJ, with Maven.
Gradle HelloFX project Non-modular project to run from IntelliJ, with Gradle.
NetBeans
NetBeans also supports HelloFX:
Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
Java HelloFX project Modular project to run from NetBeans.
Maven HelloFX project Modular project to run from NetBeans, with Maven.
Gradle HelloFX project Modular project to run from NetBeans, with Gradle.
Non-Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
Java HelloFX project Non-modular project to run from NetBeans.
Maven HelloFX project Non-modular project to run from NetBeans, with Maven.
Gradle HelloFX project Non-modular project to run from NetBeans, with Gradle.
Eclipse
Of course, Eclipse users are not left out:
Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
Java HelloFX project Modular project to run from Eclipse.
Maven HelloFX project Modular project to run from Eclipse, with Maven.
Gradle HelloFX project Modular project to run from Eclipse, with Gradle.
Non-Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
Java HelloFX project Non-modular project to run from Eclipse.
Maven HelloFX project Non-modular project to run from Eclipse, with Maven.
Gradle HelloFX project Non-modular project to run from Eclipse, with Gradle.
Visual Studio Code
And finally, for Visual Studio Code enthusiasts:
Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
Maven HelloFX project Modular project to run from Visual Studio Code, with Maven.
Gradle HelloFX project Modular project to run from Visual Studio Code, with Gradle.
Non-Modular Samples
Build Tool Sample Description
----------------- ------- -------------------------------------
Java HelloFX project Non-modular project to run from Visual Studio Code.
Maven HelloFX project Non-modular project to run from Visual Studio Code, with Maven.
Gradle HelloFX project Non-modular project to run from Visual Studio Code, with Gradle.
Troubleshooting
If you run into issues while working with HelloFX samples, consider these troubleshooting tips:
- Ensure that your Java Development Kit (JDK) is installed and properly configured.
- Make sure your build tool (Maven or Gradle) is correctly set up and recognizes the dependencies.
- If using an IDE, confirm that the project structure is correctly set up according to the HelloFX guidelines.
- Consult the issues page to see if others have faced similar problems.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Conclusion
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

