This repository was archived by the owner on Dec 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/main/java/edu/wpi/first/outlineviewer Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 44import javafx .application .Application ;
55import javafx .fxml .FXMLLoader ;
66import javafx .scene .Scene ;
7+ import javafx .scene .control .Alert ;
78import javafx .scene .control .ButtonBar .ButtonData ;
89import javafx .scene .control .ButtonType ;
910import javafx .scene .layout .Pane ;
@@ -18,6 +19,18 @@ public class OutlineViewer extends Application {
1819
1920 @ Override
2021 public void start (Stage primaryStage ) throws IOException {
22+ if (!"1.8" .equals (System .getProperty ("java.specification.version" ))) {
23+ Alert invalidVersionAlert = new Alert (Alert .AlertType .ERROR );
24+ invalidVersionAlert .setHeaderText ("Invalid JRE Version!" );
25+ invalidVersionAlert .setContentText (
26+ String .format ("You are using an unsupported Java version: %s! "
27+ + "Please download Java 8." ,
28+ System .getProperty ("java.version" )));
29+ invalidVersionAlert .showAndWait ();
30+
31+ return ;
32+ }
33+
2134 AutoUpdater updater = new AutoUpdater ();
2235
2336 PreferencesDialog preferencesDialog = new PreferencesDialog (QUIT , START );
You can’t perform that action at this time.
0 commit comments