Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sbt script fails with JDK 17 (JVMCI) #6219

@eaborm

Description

@eaborm

The Java-level JVM compiler interface (JVMCI) has been removed from JDK 17, but the sbt script tries to enable it with JVM options "-XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler". The result is that the sbt script fails to start with error "Cannot use JVMCI compiler: No JVMCI compiler found".

As a temporary workaround, I have removed those options from line 260 of my local copy of the sbt script. I am not sure how the project uses JVMCI, but it generally seems to be working without those options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions