Skip to content

Commit

Permalink
Merge branch 'master' into Spark4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainfourny authored Oct 28, 2024
2 parents 31bb3f7 + 771cc06 commit d9c3d5a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/java/org/rumbledb/cli/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,15 @@ public class Main {
public static void main(String[] args) throws IOException {
String javaVersion = System.getProperty("java.version");
if (
!javaVersion.startsWith("17")
&& !javaVersion.startsWith("18")
&& !javaVersion.startsWith("19")
&& !javaVersion.startsWith("20")
!javaVersion.startsWith("11")
&& !javaVersion.startsWith("17")
&& !javaVersion.startsWith("21")
) {
System.err.println("[Error] RumbleDB requires at least Java 17 (17 being the default Spark 4 version).");
System.err.println("[Error] RumbleDB requires Java 11, 17 or 21 (17 being the default Spark 4 version).");
System.err.println("Your Java version: " + System.getProperty("java.version"));
System.err.println("You can download Java 17 from https://adoptium.net/");
System.err.println("You can download Java 11, 17 or 21 from https://adoptium.net/");
System.err.println(
"If you do have Java 17+, but the wrong version appears above, then it means you need to set your JAVA_HOME environment variable properly to point to Java 17+."
"If you do have Java 11, 17 or 21, but the wrong version appears above, then it means you need to set your JAVA_HOME environment variable properly to point to Java 11, 17 or 21."
);
System.exit(43);
}
Expand Down

0 comments on commit d9c3d5a

Please sign in to comment.