jpackage ROOTDIR variable in a Windows bat file
Michael Hall
mik3hall at gmail.com
Sat Nov 23 16:37:27 UTC 2019
I am trying to come up with a simple Windows bat file execution of jpackage. I would like to use the builtin ROOTDIR variable. How should this be done?
Not very familiar with Windows.
This
-Djava.security.policy=$ROOTDIR\app\all.policy
Gets
Error: Invalid Option: [-Djava.security.policy=$ROOTDIR\app\all.policy]
This
-Djava.security.policy=%ROOTDIR%\app\all.policy
Gets this
Error: Invalid Option: [-Djava.security.policy=\app\all.policy]
These are included in the —java-options parameter.
This thread seems to end up indicating that $ROOTDIR should work on windows
https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-November/063361.html <https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-November/063361.html>
Although it is for finding the runtime and not included in —java-options
More information about the core-libs-dev
mailing list