mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-03 23:11:57 +03:00
Update VerRelauncher.java
This commit is contained in:
parent
dc3643089e
commit
363992e02b
1 changed files with 5 additions and 3 deletions
|
@ -7,8 +7,7 @@
|
||||||
public final class VerRelauncher {
|
public final class VerRelauncher {
|
||||||
private static final void checkCompat() {
|
private static final void checkCompat() {
|
||||||
if (JavaVersionInfo.MAJOR_VERSION < Helper.getMinVer()) {
|
if (JavaVersionInfo.MAJOR_VERSION < Helper.getMinVer()) {
|
||||||
if (Helper.isGraphic())
|
runGraph(Helper.getErrMessage());
|
||||||
runGraph(Helper.getErrMessage());
|
|
||||||
throw new AssertionError(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) {
|
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() {
|
private static void verifySystemProperties() {
|
||||||
|
|
Loading…
Reference in a new issue