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!

Launching an external .exe file which requires UAC Permission (Windows)

807580May 25 2009 — edited Aug 9 2010
Hi,

I've started building a simple launcher application which can launch other executables on my computer.

The only problem is I seem unable to launch any executables which require Windows UAC confirmation before they are run.
I tested this and turned off UAC in the Control Panel and they then run fine.

The code I'm using to launch the executables is:
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(path);
Apologies for the lack of compilable code, but hope there may be a simple solution that someone knows of.
Thanks for your help in advance.

Edited by: Jellyhead360 on May 25, 2009 5:31 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 6 2010
Added on May 25 2009
9 comments
2,526 views