I have code which requires administrator privileges on MacOS. How can a java application be launched from eclipse with elevated permissions without exporting it to a jar beforehand?
As pointed out in the comment of this answer https://stackoverflow.com/a/2580560/3244464 running eclipse as root itself is undesirable due to potential permission issues.