1 Answer

  1. Martin- Reply

    2019-11-13

    You can't make the jar ask for admin access.

    Instead, create a shortcut to java.exe -jar myjar.jar, then edit the shortcut properties, click the "Advanced..." button and check "Run as administrator".

    Now, double-clicking the shortcut to run your jar file will always run as administrator.

Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>