I need to elevate the permissions of a JavaFX desktop application. Not the .jnlp or the web version. This program will be deployed to desktops so
<fx:deploy
...
>
<fx:application
...
/><fx:resources>
...
</fx:resources>
<fx:preferences
...
/>
<fx:info
...
/><fx:permissions elevated = "true"/> <!--THIS DOESN'T WORK!!!-->
</fx:deploy>
won't work. I can get the program to run fine in my IDE, and when I deploy and set the properties of the application shortcut to run the program as administrator in Windows, that works fine too.
Evidently, according to my employer, anyway, it is too much to expect a user to do that (change the shortcut properties to launch the program as administrator) so I need another solution.
So what do I need to do to always make a JavaFX application request administrative privileges?
EDIT:
Also, using AccessController.doPrivileged(...)
does not work either.