Skip to content

Commit 8b6be24

Browse files
committed
Add an alert for Java 1.7.0_25 users
1 parent 1627bd3 commit 8b6be24

File tree

1 file changed

+9
-2
lines changed
  • gitools-ui-app/src/main/java/org/gitools/ui/platform

1 file changed

+9
-2
lines changed

gitools-ui-app/src/main/java/org/gitools/ui/platform/AppFrame.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,18 @@ public void start() {
131131
@Override
132132
public void run() {
133133
try {
134+
135+
String javaVersion = System.getProperty("java.version");
136+
if (javaVersion != null && javaVersion.endsWith("1.7.0_25")) {
137+
JOptionPane.showMessageDialog(AppFrame.get(), "You are using Java 7 build 25. This build has some important bugs, please update to the latest Java 7 build.");
138+
}
139+
134140
if (!isLatestGitools()) {
135141
JOptionPane.showMessageDialog(AppFrame.get(), "There is a newer version of Gitools.\n Download it from http://www.gitools.org.");
136142
}
137-
} catch (Exception e) {
138143

144+
} catch (Exception e) {
145+
e.printStackTrace();
139146
}
140147
}
141148
};
@@ -152,7 +159,7 @@ boolean isLatestGitools() throws Exception {
152159
return true;
153160
}
154161

155-
URL latestUrl = new URL("http://www.gitools.org/download/latest.txt");
162+
URL latestUrl = new URL("http://www.gitools.org/downloads/latest.txt");
156163

157164
URLConnection con = latestUrl.openConnection();
158165
con.setConnectTimeout(5);

0 commit comments

Comments
 (0)