Since Java works using a virtual machine, you cannot just start (for example) another thread in high mode. Instead, you will need to start a completely new virtual machine with which you cannot connect.
I would consider ways to run a separate Java process that can work with elevated permissions. You can still use the same code, but this is the main method.
You cannot simply increase your privileges.
Perhaps I am mistaken, and I am happy that it will be shown differently.
source share