Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using Runtime.exec( "regedit") does not prompt Vista to display UAC dialog

807591Mar 13 2008 — edited Apr 1 2008
When 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2008
Added on Mar 13 2008
6 comments
199 views