Add command line argument to ignore the JRE

This commit is contained in:
SiboVG 2023-03-31 13:10:11 +02:00
parent c48c3b8e4e
commit 51de605561

View File

@ -67,7 +67,8 @@ public class SwingStartup {
log.info("Starting up OpenRocket version {}", BuildProperties.getVersion());
// Check JRE version
if (!checkJREVersion()) {
boolean ignoreJRE = System.getProperty("openrocket.ignore-jre") != null;
if (!ignoreJRE && !checkJREVersion()) {
return;
}