Class LaunchJFX


  • public class LaunchJFX
    extends java.lang.Object
    Helper class to launch JavaFX applications without manually adding modules and exports to the java command line. Add a run configuration for this class in the arguments tab and add as program argument:
    • for Eclipse IDE: "${java_type_name}"
    • for Intellij IDE: "$FileClass$"
    Then, any JavaFX Application Class can be run by selecting it in the Package Explorer and running this run configuration.
    To be able to run JavaFX Applications outside of the chartfx project also add a classpath entry of type "Advanced", "Variable", "${project_classpath}", but there is no way to add the current projects dependencies to the classpath, yet.
    Author:
    akrimm
    See Also:
    Stackoverflow: How to add JavaFX runtime to Eclipse in Java11 (2b)
    • Constructor Summary

      Constructors 
      Constructor Description
      LaunchJFX()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LaunchJFX

        public LaunchJFX()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.ClassNotFoundException
        Throws:
        java.lang.ClassNotFoundException