How do I elevate my UAC permissions from Java?

According the accepted answer to this SO question, you cannot change the UAC permissions of a running process.

According to the answers to this SO question, possible ways to launch a process with elevated permissions are:

  • create a wrapper to launch the JVM (with the appropriate arguments!) with a windows manifest that requests raised privileges, or
  • use the application linked to the 2nd answer to run the JVM with raised privileges.

Leave a Comment