Home Blog Archive Software Java program as an Administrator - so it goes

Java program as an Administrator - so it goes

  • Oct 19, 2025
  • 572
  • 0

How can you start a Java program as an Administrator, shows you this practice tip guide.

Java program via a Batch file with administrator rights to start

The Java is program as a compiled EXE-file, this can be executed as any other application as Administrator (right click > Run as...). You now have only a JAR file, can you help with a small Batch file:
  1. Open any text editor.
  2. You write in the first line "start %~dp0XXX.jar" (without the quotation marks). Instead of "XXX" enter the name of the corresponding JAR-file.
  3. Save the file under any name with the extension .bat in the same directory as the JAR file is located.
  4. Click with the right mouse button on the created. BAT file. In the context menu select "execute As Administrator".
Java-Tool. BAT file to start
Read in the following practice tip, as you in Windows 8 programs always run as Administrator. In the case of Windows 7, helps you make these instructions more.

YOU MAY ALSO LIKE

0 COMMENTS

LEAVE A COMMENT

Human?
1 + 3 =