Open pierreboudes opened 5 months ago
you could add something like this to the build.sbt
run / javaOptions ++= Seq("--add-opens", "java.base/java.lang=ALL-UNNAMED")
unfortunately, this will cause issues if you use Java 8 or 11
when we get around to doing a PR to fix this, we'll probably need to add a condition that checks the java runtime version
Thank you for your quick answer ! I also had to add run / fork := true
as warned by sbt ([warn] Compile / run / javaOptions will be ignored, Compile / run / fork is set to false
). Unfortunately I still have the error. I also tried adding the same option for java.util (random pick on Internet).
On a stable Debian (OpenJDK 17), the example pekko-sample-distributed-workers-scala will fail on a exception while using
sbt run
orsbt "runMain worker.Main cassandra"
.The logs