Commit 50add13
committed
CI: Install JRuby 10 w/ Java 21 & JRuby 9 w/ Java 17
Without Java 10, JRuby 10.0.5.0 gives us:
```
attempting to run with existing JAVA_HOME
/usr/lib/jvm/temurin-17-jdk-amd64/bin/java -jar /home/runner/.rubies/jruby-10.0.5.0/lib/jruby.jar --version
Error: LinkageError occurred while loading main class org.jruby.main.Main
java.lang.UnsupportedClassVersionError: org/jruby/main/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
JRuby failed to start, try Java 21 envs
Setting JAVA_HOME to JAVA_HOME_21_X64 path /usr/lib/jvm/temurin-21-jdk-amd64
Adding /usr/lib/jvm/temurin-21-jdk-amd64/bin to PATH
Took 0.24 seconds
```
Signed-off-by: Tim Meusel <tim@bastelfreak.de>1 parent 662ea4d commit 50add13
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
48 | 61 | | |
49 | 62 | | |
50 | 63 | | |
| |||
0 commit comments