Skip to content

Commit

Permalink
Disable '-Djdk.module.illegalAccess=deny' javaoption
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
cd2357 committed Oct 8, 2020
1 parent 0b40dff commit 696a788
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion desktop/package/package.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}\""
Expand Down

0 comments on commit 696a788

Please sign in to comment.