-
-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.UnsupportedClassVersionError when running ammonite #1107
Comments
Bug on archlinux is here https://bugs.archlinux.org/task/67353 (incase its not upstream issue). |
I am getting the same thing with Java 11.0.8. |
This is a problem with packaging upstream. the package binary is built with java 1.8 and if you then run it with java 1.11 you will get this error. You can build the package with jvm 1.11 using:
Of course at this point maybe it's just easier to use the |
Why would Java 11 complain about Java 8 classfiles? The other way around would make sense... |
Possibly I got this wrong and the package was compiled with a jvm version > than 11, but somehow works on jvm 8 but not 11? |
That also doesn't seem to make any sense |
Well, sometimes things that don't make sense actually happen: With ammonite compiled with java 16:
|
The presence of |
Any update on this ? |
That seems to be specific to Arch Linux. Someone running Arch Linux should probably pick it up, and fix it or find a workaround. |
Mill has it set (https://github.com/com-lihaoyi/mill/blob/8191576b474256e29f1c632e51768544b9e489d2/build.sc#L219) but ammonite seems to be missing this setting. Fixes com-lihaoyi#1107
Mill has it set (https://github.com/com-lihaoyi/mill/blob/8191576b474256e29f1c632e51768544b9e489d2/build.sc#L219) but ammonite seems to be missing this setting. Fixes #1107 Pull request: #1319
OS: Manjaro Linux (latest stable)
Ammonite Version: Welcome to the Ammonite Repl 2.1.4 (Scala 2.13.2 Java 11.0.7)
Ammonite Package: https://www.archlinux.org/packages/community/any/ammonite/ (official ammonite package on Archlinux)
JDK: openjdk 11.0.7 2020-04-14 ; OpenJDK Runtime Environment (build 11.0.7+10) ; OpenJDK 64-Bit Server VM (build 11.0.7+10, mixed mode)
which java
: /usr/bin/javaWhen running ammonite locally with an empty cache (i.e.
~/.ammonite
is wiped) usingamm
I am gettingNote that this happens not immediately on startup but when I first start interacting with the repl (i.e. even pressing enter on a blank new line).
The text was updated successfully, but these errors were encountered: