You can, for a really terrible method without cross-platform, use VBScript .ShellExecute
and Runtime.exec
to force the program to run as an administrator.
For brevity, I created a simple program available at https://dl.dropbox.com/u/26746878/Misc/JavaElevated.zip
It can be launched using java Launcher
.
From NetBeans, I would suggest that you somehow ask him to launch Launcher
as the main class instead of the main Program
.
source share