Skip to content

Commit

Permalink
Merge pull request #1274 from RumbleDB/Java11
Browse files Browse the repository at this point in the history
Require Java 11 or 17
  • Loading branch information
ghislainfourny authored Oct 28, 2024
2 parents 1f52989 + dc061de commit 771cc06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/rumbledb/cli/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public class Main {

public static void main(String[] args) throws IOException {
String javaVersion = System.getProperty("java.version");
if (!javaVersion.startsWith("1.8") && !javaVersion.startsWith("11.")) {
System.err.println("[Error] RumbleDB requires Java 8 or Java 11.");
if (!javaVersion.startsWith("11.") && !javaVersion.startsWith("17.")) {
System.err.println("[Error] RumbleDB requires Java 11 or 17.");
System.err.println("Your Java version: " + System.getProperty("java.version"));
System.err.println("You can download Java 8 or 11 from https://adoptium.net/");
System.err.println("You can download Java 11 or 17 from https://adoptium.net/");
System.err.println(
"If you do have Java 8 or 11, but the wrong version appears above, then it means you need to set your JAVA_HOME environment variable properly to point to Java 8 or 11."
"If you do have Java 11 or 17, but the wrong version appears above, then it means you need to set your JAVA_HOME environment variable properly to point to Java 11 or 17."
);
System.exit(43);
}
Expand Down

0 comments on commit 771cc06

Please sign in to comment.