public static void validateJdk() {
		try {
			Class.forName("com.sun.tools.attach.VirtualMachine");
		} catch (ClassNotFoundException ex) {
			logger.error("Recaf must be run with a JDK, but was run with a JRE: " + System.getProperty("java.home"));
			ExitDebugLoggingHook.exit(ExitCodes.ERR_NOT_A_JDK);
		}
	}
Applies a few assorted checks to ensure we are running on a JDK and not a JRE.
recaf-core/src/main/java/software/coley/recaf/util/JdkValidation.java