FS#67353 - [ammonite] doesn't work with jdk11-openjdk with a classpath error

Attached to Project: Community Packages
Opened by Matthew de Detrich (mdedetrich) - Wednesday, 22 July 2020, 07:59 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 20 April 2023, 10:00 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

Latest ammonite package is not running when combined with jdk11-openjdk. The following error occurs when starting ammonite and doing any interaction with the repl (i.e. pressing new line)

java.lang.UnsupportedClassVersionError: io/github/retronym/java9rtexport/Export has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 55.0
ammonite.runtime.Classpath$.classpath(Classpath.scala:77)
ammonite.interp.CompilerLifecycleManager.init(CompilerLifecycleManager.scala:85)
ammonite.interp.CompilerLifecycleManager.preprocess(CompilerLifecycleManager.scala:57)
ammonite.interp.Interpreter.$anonfun$processLine$4(Interpreter.scala:247)
ammonite.util.Res$Success.flatMap(Res.scala:62)
ammonite.interp.Interpreter.$anonfun$processLine$2(Interpreter.scala:240)
ammonite.util.Catching.flatMap(Res.scala:115)
ammonite.interp.Interpreter.processLine(Interpreter.scala:239)
ammonite.repl.Repl.$anonfun$action$8(Repl.scala:197)
ammonite.util.Res$Success.flatMap(Res.scala:62)
ammonite.repl.Repl.$anonfun$action$4(Repl.scala:184)
ammonite.repl.Scoped.$anonfun$flatMap$1(Signaller.scala:45)
ammonite.repl.Signaller.apply(Signaller.scala:28)
ammonite.repl.Scoped.flatMap(Signaller.scala:45)
ammonite.repl.Scoped.flatMap$(Signaller.scala:45)
ammonite.repl.Signaller.flatMap(Signaller.scala:16)
ammonite.repl.Repl.$anonfun$action$2(Repl.scala:176)
ammonite.util.Catching.flatMap(Res.scala:115)
ammonite.repl.Repl.action(Repl.scala:168)
ammonite.repl.Repl.loop$1(Repl.scala:208)
ammonite.repl.Repl.run(Repl.scala:223)
ammonite.Main.$anonfun$run$1(Main.scala:223)
scala.Option.getOrElse(Option.scala:201)
ammonite.Main.run(Main.scala:211)
ammonite.MainRunner.$anonfun$runRepl$1(Main.scala:413)
ammonite.MainRunner.watchLoop(Main.scala:394)
ammonite.MainRunner.runRepl(Main.scala:413)
ammonite.Main$.main0(Main.scala:320)
ammonite.Main$.main(Main.scala:270)
ammonite.Main.main(Main.scala)

Note that its likely that this bug is specific to Archlinux and how it configures Java since ammonite basically fails to work on startup (and so if it was a generic upstream bug a lot more people would complain about it).

Additional info:
* ammonite 2.1.4-1
* jdk11-openjdk
* upstream bug is here https://github.com/lihaoyi/Ammonite/issues/1107

Steps to reproduce: Install ammonite and then install jdk11-openjdk
This task depends upon

Closed by  Felix Yan (felixonmars)
Thursday, 20 April 2023, 10:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  ammonite 2.5.6-2
Comment by Felix Yan (felixonmars) - Saturday, 28 January 2023, 10:17 GMT
ammonite 2.5.6-2 has been updated to build with java 8. Please let me know if this fixes it for you.

Loading...