Check if application is run under root privileges?
Hello,
My Java application is going to use some low-level networking functions written through JNI. For this, it needs to be run as root (Linux). Is there a way to check within the application if it is run with root privileges? (Or administrator privileges in Windows) If it is not, then it would disable certain options.
Thanks.

