Skip to content

Commit

Permalink
Setting jvm option -Djdk.module.illegalAccess=deny avoids the warni…
Browse files Browse the repository at this point in the history
…ng logs at startup

Not sure how to add it to gradle so its set at normal compilation as well...

User get confused by the warning as it sounds somehow alerting.

`WARNING: An illegal reflective access operation has occurred
 WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/Users/dev/.gradle/caches/modules-2/files-2.1/com.google.inject/guice/4.2.2/6dacbe18e5eaa7f6c9c36db33b42e7985e94ce77/guice-4.2.2.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
 WARNING: All illegal access operations will be denied in a future release`
  • Loading branch information
chimp1984 committed Oct 6, 2020
1 parent fd65bcc commit be204c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions desktop/package/linux/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ $JAVA_HOME/bin/javapackager \
-BjvmOptions=-Xss1280k \
-BjvmOptions=-XX:MaxRAM=4g \
-BjvmOptions=-Djava.net.preferIPv4Stack=true \
-BjvmOptions=-Djdk.module.illegalAccess=deny \
-outfile Bisq-$version \
-v

Expand Down
1 change: 1 addition & 0 deletions desktop/package/macosx/create_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ $JAVA_HOME/bin/javapackager \
-srcfiles "Bisq-$version.jar" \
-appclass bisq.desktop.app.BisqAppMain \
-outfile Bisq \
-BjvmOptions=-Djdk.module.illegalAccess=deny \
-v

open deploy
Expand Down
1 change: 1 addition & 0 deletions desktop/package/windows/package.bat
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ call "%JAVA_HOME%\bin\javapackager.exe" -deploy ^
-srcdir "%package_dir%" ^
-srcfiles %jar_filename% ^
-outfile Bisq ^
-BjvmOptions=-Djdk.module.illegalAccess=deny ^
-v

if not exist "%package_dir%\windows\Bisq-%version%.exe" (
Expand Down

0 comments on commit be204c4

Please sign in to comment.