How can i verify if a user is root in a java application?
Thanks
You can call
Process p = Runtime.getRuntime.exec("whoami")
method. Then you can process p's stdout to read output of command.