"The Java SecurityManager class can be configured to disable reflection.<br><a href=""https://stackoverflow.com/questions/29246028/how-to-prevent-access-via-reflection#29246120"">https://stackoverflow.com/questions/29246028/how-to-prevent-access-via-reflection#29246120</a><br><br>This would no doubt prevent many programs from working."