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 4
4
import javafx .application .Application ;
5
5
import javafx .fxml .FXMLLoader ;
6
6
import javafx .scene .Scene ;
7
+ import javafx .scene .control .Alert ;
7
8
import javafx .scene .control .ButtonBar .ButtonData ;
8
9
import javafx .scene .control .ButtonType ;
9
10
import javafx .scene .layout .Pane ;
@@ -18,6 +19,18 @@ public class OutlineViewer extends Application {
18
19
19
20
@ Override
20
21
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
+
21
34
AutoUpdater updater = new AutoUpdater ();
22
35
23
36
PreferencesDialog preferencesDialog = new PreferencesDialog (QUIT , START );
You can’t perform that action at this time.
0 commit comments