add workaround for legacy code (bsaf) on modern mac with java 17 (#1211)

This commit is contained in:
Scott Fennell 2022-01-06 16:28:07 -06:00 committed by GitHub
parent 4418fe034c
commit 64725f8f1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,8 @@ sub launch_java($$) {
$command .= "\\
-Xdock:name=\"$name\" \\
-Xdock:icon=$java_dir/build/classes/trick/common/resources/trick_icon.png \\
-Djava.net.preferIPv4Stack=true \\" ;
-Djava.net.preferIPv4Stack=true \\
--add-opens=java.desktop/com.apple.eawt=ALL-UNNAMED \\" ;
}
$command .= "$java_dir/build/$application.jar ";
@ -45,7 +46,6 @@ sub launch_java($$) {
foreach (@ARGV) {
$command .= "$_ ";
}
system $command ;
exit $? >> 8 ;
}