Class Launcher

java.lang.Object
io.github.jbastgen.stemma.app.Launcher

public final class Launcher extends Object
Plain entry point. It deliberately does not extend Application, so the application can also be started from a classpath (non-modular) jar without the JavaFX "runtime components are missing" error.
  • Method Details

    • main

      public static void main(String[] args)
      Starts Stemma: checks that JavaFX is there, keeps its cache in the configuration folder, starts the logging and launches StemmaApp.
      Parameters:
      args - optionally the folder of a repository to open
    • startLogging

      public static void startLogging()
      Points Logback to the log folder (logs in the application's directory, see AppDirs.logDir()), removes the log files older than LogCleanup.KEEP_DAYS days, and makes sure that an exception nobody caught ends up in the log file instead of being lost.