dwijnand/sbt-extras

"Cannot use JVMCI compiler: No JVMCI compiler found" error with JDK17

xuwei-k opened this issue · 3 comments

🤔

sbt-extras/sbt

Line 261 in 787e7a6

echo "$default_jvm_opts_common -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler"

How did you fix this issue?

Try to run sbt clean dist.

If the problem, under Ubuntu with Java installed, exists, then do the following:

  • Installl sbt from here
  • sbt clean dist

Also, make sure JAVA_HOME is set correctly.