Skip to content

Commit 27ee796

Browse files
committed
print warning on minimal installs
1 parent 206813b commit 27ee796

File tree

1 file changed

+8
-2
lines changed
  • src/java8/java/org/quiltmc/installer

1 file changed

+8
-2
lines changed

src/java8/java/org/quiltmc/installer/Main.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,22 @@ public static void main(String[] args) {
5050
.findStatic(Class.forName("org.quiltmc.installer.gui.swing.SwingInstaller"), "run", MethodType.methodType(void.class))
5151
.invokeExact();
5252
}
53+
54+
System.exit(0);
5355
} catch (UnsupportedClassVersionError error) {
5456
System.err.printf("Quilt Installer requires Java %s or greater to run.%n", BuildConstants8.MIN_JAVA_VERSION);
5557
if (!cliMode) {
5658
GuiMain.tryShowGuiError();
5759
}
58-
59-
System.exit(1);
60+
} catch (NoClassDefFoundError e) {
61+
System.err.println("You appear to be using a 'minimal' Java installation. This is not supported by Quilt Installer. Please try again with a FULL installation of Java.");
62+
System.err.println("If you believe this is a bug, please report it here: https://github.com/quiltmc/quilt-installer/issues");
6063
} catch (Throwable t) {
6164
throw new RuntimeException(t);
6265
}
66+
67+
// If we get here, something went wrong
68+
System.exit(1);
6369
}
6470

6571
}

0 commit comments

Comments
 (0)