show warning on 32bit jre

This commit is contained in:
honfika@gmail.com
2016-02-27 16:29:58 +01:00
parent 94bb61c9b3
commit 1a0aa9c779
6 changed files with 50 additions and 18 deletions

View File

@@ -1006,6 +1006,8 @@ public class Main {
} else {
throw new IOException("Output is empty");
}
} else {
throw new IOException("Output not found");
}
}
@@ -2250,6 +2252,9 @@ public class Main {
@Override
public void uncaughtException(Thread t, Throwable e) {
logger.log(Level.SEVERE, "Uncaught exception in thread: " + t.getName(), e);
if (e instanceof OutOfMemoryError || !Helper.is64BitJre() && Helper.is64BitOs()) {
View.showMessageDialog(null, AppStrings.translate("message.warning.outOfMemeory32BitJre"), AppStrings.translate("message.warning"), JOptionPane.WARNING_MESSAGE);
}
}
});