Unable to use -J--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
in application.ini in Windows
#1354
Labels
universal
Zip, tar.gz, tgz and bash issues
I have a
application.ini
like this:I use
universal:packageBin
to generate a zip for using in Windows & Linux.I checked the documentation but can't find any way to add
--add-opens=xxx
,-XX:MaxDirectMemorySize=yy
or similar java parameters inapplication.ini
.Actual behaviour
When I use
xxx.bat
with the aboveapplication.ini
in the Windows, thexxx.bat
will use"xxx\java.exe" --add-opens -Xmx90m -XX:MaxDirectMemorySize
for running.The "=java.base/jdk.internal.misc=ALL-UNNAMED" and "=90m" are all removed.
The
xxx
executable in Linux can run with that .ini file without any problem.If I add
"
for these parameters (For example:"-J--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED"
) in .ini file, I can use it in the Windows, but it doesn't work in the Linux.Expected behaviour
Can use
--add-opens
and-XX:MaxDirectMemorySize
these JVM key-values parameters inapplication.ini
in different OS.Information
"com.typesafe.sbt" % "sbt-native-packager" % "1.7.3"
1.3.10
Linux/Windows
universal:packageBin (Universal Plugin)
The text was updated successfully, but these errors were encountered: