Skip to content

[1.x] .jvmopts parse error on Windows Git Bash  #8767

@xuwei-k

Description

@xuwei-k

steps

sbt 1.12.3

.jvmopts

-Xmx2G
-Xss1M

problem

https://github.com/sbt/zinc/actions/runs/22214481394/job/64255297794?pr=1641#step:6:1

Run sbt -v -Dfile.encoding=UTF-8 -Dsbt.supershell=never "Test/compile" "crossTestBridges" "zincRoot/test" "scripted"
[sbt_options] declare -a sbt_options=()
[process_args] java_version = '17'
Invalid maximum heap size: -Xmx2G
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[copyRt] java9_rt = '/rt.jar'
mkdir: cannot create directory '': No such file or directory
Invalid maximum heap size: -Xmx2G
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
# Executing command line:
java
-Dfile.encoding=UTF-8
-Xmx2G
-Xss1M
-Dfile.encoding=UTF-8
-Dsbt.supershell=never
-Dsbt.script=/c/hostedtoolcache/windows/sbt/1.12.3/sbt/bin/sbt
-Dscala.ext.dirs=
-Djline.terminal=jline.UnixTerminal
-Dsbt.cygwin=true
-jar
C:\hostedtoolcache\windows\sbt\1.12.3\sbt\bin\sbt-launch.jar
Test/compile
crossTestBridges
zincRoot/test
scripted

Invalid maximum heap size: -Xmx2G
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Error: Process completed with exit code 1.

expectation

notes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions