ScalaClean icon indicating copy to clipboard operation
ScalaClean copied to clipboard

SBT is not working with JDK 17

Open monksy opened this issue 2 years ago • 0 comments

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.

monksy avatar Feb 23 '22 18:02 monksy