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

Commit

Permalink
[JENKINS-28120]
Browse files Browse the repository at this point in the history
Now requiring Java7
  • Loading branch information
kohsuke committed Apr 29, 2015
1 parent 56d8d2d commit 9850770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/Main.java
Expand Up @@ -86,7 +86,7 @@ public static void main(String[] args) throws Exception {
String v = System.getProperty("java.class.version");
if (v!=null) {
try {
if (Float.parseFloat(v)<49.0f)
if (Float.parseFloat(v)<51.0f)
throw new UnsupportedClassVersionError(v);
} catch (NumberFormatException e) {
// err on the safe side and keep on going
Expand All @@ -97,7 +97,7 @@ public static void main(String[] args) throws Exception {

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

0 comments on commit 9850770

Please sign in to comment.