- Timestamp:
- 2014-04-15T00:48:42+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r6957 r6979 1117 1117 String version = System.getProperty("java.version"); 1118 1118 if (version != null) { 1119 if (version.startsWith("1.6") || version.startsWith("6") || 1120 version.startsWith("1.7") || version.startsWith("7") || 1121 version.startsWith("1.8") || version.startsWith("8") || 1122 version.startsWith("1.9") || version.startsWith("9")) 1119 if (version.matches("^(1\\.)?[6789].*")) 1123 1120 return; 1124 if (version. startsWith("1.5") || version.startsWith("5")) {1121 if (version.matches("^(1\\.)?[5].*")) { 1125 1122 JMultilineLabel ho = new JMultilineLabel("<html>"+ 1126 1123 tr("<h2>JOSM requires Java version 6.</h2>"+ … … 1141 1138 final String EXIT = tr("Exit JOSM"); 1142 1139 final String CONTINUE = tr("Continue, try anyway"); 1143 int ret = JOptionPane.showOptionDialog(null, panel, tr("Error"), JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE, null, new String[] {EXIT, CONTINUE}, EXIT); 1140 int ret = JOptionPane.showOptionDialog(null, panel, tr("Error"), JOptionPane.YES_NO_OPTION, 1141 JOptionPane.ERROR_MESSAGE, null, new String[] {EXIT, CONTINUE}, EXIT); 1144 1142 if (ret == 0) { 1145 1143 System.exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.