From 01360f3f25adcd4a95cf5bcc33bb5bc5f0e445cc Mon Sep 17 00:00:00 2001 From: Owen Date: Sat, 13 Oct 2018 12:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=86=8D=E6=98=BE=E7=A4=BA=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=8F=90=E7=A4=BA=EF=BC=8C=E8=AF=B7=E9=98=85=E8=AF=BB?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zzg/mybatis/generator/MainUI.java | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/zzg/mybatis/generator/MainUI.java b/src/main/java/com/zzg/mybatis/generator/MainUI.java index 19ac9f1b..bbe43401 100644 --- a/src/main/java/com/zzg/mybatis/generator/MainUI.java +++ b/src/main/java/com/zzg/mybatis/generator/MainUI.java @@ -15,6 +15,7 @@ /** * 这是本软件的主入口,要运行本软件请直接运行本类就可以了,不用传入任何参数 + * 本软件要求jkd版本大于1.8.0.40 */ public class MainUI extends Application { @@ -35,21 +36,7 @@ public void start(Stage primaryStage) throws Exception { } public static void main(String[] args) { - String version = System.getProperty("java.version"); - if (Integer.parseInt(version.substring(0,1)) == 1 && Integer.parseInt(version.substring(2, 3)) >= 8 && Integer.parseInt(version.substring(6)) >= 60 || Integer.parseInt(version.substring(0,1))>=9) { - launch(args); - }else { - JFrame jFrame = new JFrame("版本错误"); - jFrame.setSize(500, 100); - jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - JPanel jPanel = new JPanel(); - JLabel jLabel = new JLabel("JDK的版本不能低于1.8.0.60,请升级至最近的JDK 1.8再运行此软件,当前版本:" + version); - jPanel.add(jLabel); - jFrame.add(jPanel); - jFrame.setLocationRelativeTo(null); - jFrame.setVisible(true); - - } + launch(args); } }