Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-44764] - Unsupported class message updated to java 8 (#8)
* unsupported class message updated to java 8

* Updated minimum major version
  • Loading branch information
nigelkirby authored and oleg-nenashev committed Jun 12, 2017
1 parent f600aa0 commit f4f09b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/Main.java
Expand Up @@ -100,7 +100,7 @@ public static void main(String[] args) throws Exception {
String v = System.getProperty("java.class.version");
if (v!=null) {
try {
if (Float.parseFloat(v)<51.0f)
if (Float.parseFloat(v)<52.0f)
throw new UnsupportedClassVersionError(v);
} catch (NumberFormatException e) {
// err on the safe side and keep on going
Expand All @@ -111,7 +111,7 @@ public static void main(String[] args) throws Exception {

_main(args);
} catch (UnsupportedClassVersionError e) {
System.err.println("Jenkins requires Java7 or later, but you are running "+
System.err.println("Jenkins requires Java8 or later, but you are running "+
System.getProperty("java.runtime.version")+" from "+System.getProperty("java.home"));
e.printStackTrace();
}
Expand Down

0 comments on commit f4f09b1

Please sign in to comment.