Skip to content

SBT is not working with JDK 17 #120

@monksy

Description

@monksy

Not able to execute sbt -v analysisPlugin/assembly due to an assumption that the project has for JDK args.

[sbt_options] declare -a sbt_options='()'
[process_args] java_version = '17'
Unrecognized VM option 'CMSClassUnloadingEnabled'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[copyRt] java9_rt = '/rt.jar'
copying runtime jar...
mkdir: : No such file or directory
Unrecognized VM option 'CMSClassUnloadingEnabled'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
# Executing command line:
java
-Xss4m
-Xms1G
-Xmx8G
-XX:ReservedCodeCacheSize=1024m
-XX:+TieredCompilation
-XX:+CMSClassUnloadingEnabled
-Dsbt.script=/usr/local/Cellar/sbt/1.6.1/libexec/bin/sbt
-Dscala.ext.dirs=
-jar
/usr/local/Cellar/sbt/1.6.1/libexec/bin/sbt-launch.jar
analysisPlugin/assembly

Unrecognized VM option 'CMSClassUnloadingEnabled'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions