public static void main(String[] args) throws Exception { try { String v = System.getProperty("java.class.version"); if (v!=null) { try { if (Float.parseFloat(v)<52.0f) throw new UnsupportedClassVersionError(v); } catch (NumberFormatException e) { // err on the safe side and keep on going } } ColorFormatter.install(); _main(args); } catch (UnsupportedClassVersionError e) { System.err.println("Jenkins requires Java8 or later, but you are running "+ System.getProperty("java.runtime.version")+" from "+System.getProperty("java.home")); e.printStackTrace(); } }
private Status handleUnsupportedClassVersion(UnsupportedClassVersionError ucve) { config.getError().println("Error: Some library (perhaps JRuby) was built with a later JVM version."); config.getError().println("Please use libraries built with the version you intend to use or an earlier one."); if (config.isVerbose()) { config.getError().println("Exception trace follows:"); ucve.printStackTrace(); } else { config.getError().println("Specify -w for full UnsupportedClassVersionError stack trace"); } return new Status(1); }
private Status handleUnsupportedClassVersion(UnsupportedClassVersionError ucve) { config.getError().println("Error: Some library (perhaps JRuby) was built with a later JVM version."); config.getError().println("Please use libraries built with the version you intend to use or an earlier one."); if (config.isVerbose()) { config.getError().println("Exception trace follows:"); ucve.printStackTrace(); } else { config.getError().println("Specify -w for full UnsupportedClassVersionError stack trace"); } return new Status(1); }
private Status handleUnsupportedClassVersion(UnsupportedClassVersionError ex) { config.getError().println("Error: Some library (perhaps JRuby) was built with a later JVM version."); config.getError().println("Please use libraries built with the version you intend to use or an earlier one."); if (config.isVerbose()) { ex.printStackTrace(config.getError()); } else { config.getError().println("Specify -w for full " + ex + " stack trace"); } return new Status(1); }
private Status handleUnsupportedClassVersion(UnsupportedClassVersionError ex) { config.getError().println("Error: Some library (perhaps JRuby) was built with a later JVM version."); config.getError().println("Please use libraries built with the version you intend to use or an earlier one."); if (config.isVerbose()) { ex.printStackTrace(config.getError()); } else { config.getError().println("Specify -w for full " + ex + " stack trace"); } return new Status(1); }
if (runtime.isDebug()) ucve.printStackTrace(); throw runtime.newLoadError("JRuby ext built for wrong Java version in `" + finName + "': " + ucve, finName.toString()); } catch (IOException ioe) {
if (runtime.isDebug()) ucve.printStackTrace(); throw runtime.newLoadError("JRuby ext built for wrong Java version in `" + finName + "': " + ucve, finName.toString()); } catch (IOException ioe) {
if (runtime.isDebug()) ucve.printStackTrace(); throw runtime.newLoadError("JRuby ext built for wrong Java version in `" + className + "': " + ucve, className);
if (runtime.isDebug()) ucve.printStackTrace(); throw runtime.newLoadError("JRuby ext built for wrong Java version in `" + className + "': " + ucve, className);
ucve.printStackTrace(); } else { System.err.println("Specify -w for full UnsupportedClassVersionError stack trace");
e); System.err.println("Could not load plugin " + filename + " : " + e); e.printStackTrace(); System.err.println("Plugin " + filename + " appears to require a later JVM"); Logger.error(this, "Plugin " + filename + " appears to require a later JVM");