8000 GitHub - markusmo3/super-user-application: Execute Jar's with Administrator privileges
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

markusmo3/super-user-application

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

super-user-application

Execute Jar's with Administrator privileges

Note: On some versions of windows, elevated applications don't always have access to removable drives that were mounted by users. Applications that need to be elevated on windows should be run from a non-removable hard drive.

Installation

Add the following dependency to your pom.xml

<dependency>
	<groupId>com.vnetpublishing.java</groupId>
	<artifactId>super-user-application</artifactId>
	<version>0.0.5</version>
</dependency>

Building

Checkout this repository and execute the maven installer from the base directory with the pom.xml file in it.

mvn install

Once it is installed you can add it to your projects as a maven dependency.

Maven Dependency

<dependency>
	<groupId>com.vnetpublishing.java</groupId>
	<artifactId>super-user-application</artifactId>
	<version>0.0.6-SNAPSHOT</version>
</dependency>

Example Usage:

package com.vnetpublishing.java;

import com.vnetpublishing.java.suapp.SU;
import com.vnetpublishing.java.suapp.SuperUserApplication;

public class TestAdmin extends SuperUserApplication {
	
	public static void main(String[] args) {
		SU.run(new TestAdmin(), args);
	}
	
	public int run(String[] args) {
		System.out.println("RUN AS ADMIN! YAY!");
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		return 0;
	}
}


About

Execute Jar's with Administrator privileges

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%
0