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!

Mac OS X - Run program as administrator

807591Mar 28 2008
Hi,

my java program needs administrator rights to run properly.
I can of course start my JAR using the console and the sudo command:
sudo java -jar MyApp.jar
But I'd like to start my program using a double click on the jar file.
How can I get java to show this authentication dialog:
http://www.askdavetaylor.com/0-blog-pics/macosx-authenticate-passwd.png

Anyone?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2008
Added on Mar 28 2008
0 comments
625 views