I just tried this and it worked fine for me:

jpackage --java-options '-Djava.security.policy=$APPDIR/all.policy' ...

(note that there should not be an extra "/app" since $APPDIR points to the app directory).

It generated this in the ApplicationName/app/ApplicationName.cfg file:

[JavaOptions]
-Djava.security.policy=$APPDIR/all.policy


-- Kevin



On 11/23/2019 9:12 AM, Michael Hall wrote:

With forward slashes

Error: Invalid Option: [-Djava.security.policy=$ROOTDIR/app/all.policy]
Sorry that should of been APPDIR. manually cutting and pasting with edit since 
I can’t currently cut and paste directly between Windows VirtualBox and OS X.

Reply via email to