Disable '-Djdk.module.illegalAccess=deny' javaoption

Disable the java option because it causes issues in the resulting app if packaged with a recent Java Runtime (tested with Java 11, 14 and 15).
This commit is contained in:
cd2357 2020-10-08 13:15:08 +02:00
parent 0b40dff95d
commit 696a788e5e
No known key found for this signature in database
GPG key ID: F26C56748514D0D3

View file

@ -222,15 +222,20 @@ task packageInstallers {
" --copyright \"© 2020 Bisq\"" +
" --vendor Bisq" +
" --temp \"${jpackateTempDir}\"" +
// Options for creating the application image
" --input ${fatJarFolderPath}" +
// Options for creating the application launcher
" --main-jar ${mainJarName}" +
" --main-class bisq.desktop.app.BisqAppMain" +
" --java-options -Xss1280k" +
" --java-options -XX:MaxRAM=4g" +
" --java-options -Djava.net.preferIPv4Stack=true" +
" --java-options -Djdk.module.illegalAccess=deny" +
// Warning: this will cause guice reflection exceptions and lead to issues with the guice internal cache
// resulting in the UI not loading
// " --java-options -Djdk.module.illegalAccess=deny" +
// Options for creating the application package
" --license-file \"${licenseFilePath}\"" +
" --runtime-image \"${jdkForAppRuntimePath}\""