Skip to content

Commit

Permalink
add jvm args to package.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
celuchmarek committed Nov 22, 2023
1 parent f3a2be1 commit bafd69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@
<configuration>
<fork>true</fork>
<executable>${jlink.jdk.path}${file.separator}bin${file.separator}javac</executable>
<source>17</source>
<target>17</target>
<source>${java.version}</source>
<target>${java.version}</target>
<compilerArgs>
<arg>--add-exports</arg>
<arg>jdk.crypto.cryptoki/sun.security.pkcs11.wrapper=ALL-UNNAMED</arg>
Expand Down
2 changes: 1 addition & 1 deletion src/main/scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ while read -r key value; do
done <"$resourcesDir/build.properties"
unset IFS

jvmOptions="-Dfile.encoding=UTF-8 -Dprism.maxvram=2G --add-exports javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED"
jvmOptions="-Dfile.encoding=UTF-8 -Dprism.maxvram=2G --add-exports javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED --add-exports jdk.crypto.cryptoki/sun.security.pkcs11.wrapper=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens jdk.crypto.cryptoki/sun.security.pkcs11=ALL-UNNAMED"
arguments=(
"--input" "$appDirectory"
"--runtime-image" "$jdkDirectory"
Expand Down

0 comments on commit bafd69a

Please sign in to comment.