I am trying to open an extenal program that requires me to open this program as administrator.
I am using these two lines to open external program, but the program is executed without administrator privileges.
How i can execute it with the correct rights?
Runtime run = Runtime.getRuntime();
Process proc = run.exec(locationOfProgram);