1. Are args for running Gradle itself 2. Is also j...
# gradle
v
1. Are args for running Gradle itself 2. Is also just looked at by start scripts like the wrapper 3. Is for compiling java, that can never help for compiling Kotlin 4. Sounds reasonable except that you give
--add-opens,java.base/java.util=ALL-UNNAMED
, this is most likely not correct. I wonder that it did not complain about that syntax
s
Thanks! Still same error after changing to
"-Xjavac-arguments=--add-opens=java.base/java.util=ALL-UNNAMED"
Somehow these arguments are not reflected on kotlin compiler daemon
v
Which also is not the right syntax I think. But if it does not complain about the syntax it is probably not used, yes.
s
which part of the syntax is not correct
-Xjavac-arguments
option or
--add-opens
?
v
I think there has to be a space after
--add-opens
, but I'm not sure wheter equals sign might also work
s
Copy code
» java --add-opens=java.base/java.util=ALL-UNNAMED --version      

openjdk 17-loom 2021-09-14
OpenJDK Runtime Environment (build 17-loom+2-42)
OpenJDK 64-Bit Server VM (build 17-loom+2-42, mixed mode, sharing)


 » java --add-opens java.base/java.util=ALL-UNNAMED --version   
                                               
openjdk 17-loom 2021-09-14
OpenJDK Runtime Environment (build 17-loom+2-42)
OpenJDK 64-Bit Server VM (build 17-loom+2-42, mixed mode, sharing)
Both are valid
v
ok