Skip to content

Commit

Permalink
Readd Java workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Daltz333 committed Jan 7, 2022
1 parent 0354908 commit 9fb579e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 4 additions & 0 deletions src/main/java/GrizzlyTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ public void start(Stage primaryStage) {
});
}

public static void main(String[] args) {
Application.launch(args);
}

// catch uncaught exceptions
private static void globalExceptionHandler(Throwable throwable) {
LoggingUtils.log(Level.SEVERE, throwable);
Expand Down
13 changes: 3 additions & 10 deletions src/main/java/Main.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import javafx.application.Preloader;
import javafx.stage.Stage;
import javafx.application.Application;

/**
* This is the true main class of GrizzlyTime, it launches GrizzlyTime through some fancy black
* magic to get JFX working on Java 11
*/
public class Main extends Preloader {
public class Main {
public static void main(String[] args) {
launch(GrizzlyTime.class, args);
}

@Override
public void start(Stage primaryStage) throws Exception {
// TODO Auto-generated method stub

GrizzlyTime.main(args);
}
}

0 comments on commit 9fb579e

Please sign in to comment.