Update VerRelauncher.java

This commit is contained in:
Zaxar163 2018-10-31 12:42:56 +03:00 committed by GitHub
parent dc3643089e
commit 363992e02b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,8 +7,7 @@
public final class VerRelauncher {
private static final void checkCompat() {
if (JavaVersionInfo.MAJOR_VERSION < Helper.getMinVer()) {
if (Helper.isGraphic())
runGraph(Helper.getErrMessage());
runGraph(Helper.getErrMessage());
throw new AssertionError(Helper.getErrMessage());
}
}
@ -32,7 +31,10 @@ public static void main(final String[] args) {
}
private static void runGraph(final String errMessage) {
JOptionPane.showMessageDialog(null, errMessage);
try {
Class.forName("javax.swing.JOptionPane", true, ClassLoader.getSystemClassLoader());
JOptionPane.showMessageDialog(null, errMessage);
} catch (final Throwable t) { }
}
private static void verifySystemProperties() {