Using Runtime.exec( "regedit") does not prompt Vista to display UAC dialog
807591Mar 13 2008 — edited Apr 1 2008When I run the following code in Vista (with User Access Control turned on) from within my IDE (IntelliJ 5.x) under Java 1.5.0_11:
Runtime.getRuntime().exec( "regedit ..." )
Vista appropriately displays the UAC confirmation box to verify that it is okay to modify the registry.
However, when I run the same code with the same jre from the command line via an executable jar, it simply fails without ever displaying the confirmation pop up.
Any ideas why? And any possible resolution?