For me Java is just a security threat. Not many legitimate Linux apps use Java. However there is an abundance in Java malware and malicious remote administration tools like Jrat among others.
But one legitimate app I run like the "Arduino IDE" may unfortunately need Java. So, I want an option to enable or disable Java whenever I want without uninstalling it.
I was thinking of denying Java permission to execute using
chmod. Would this work? Is there a better alternative? Would moving Java from a "bin" folder work?
Edit: I just realized that Java may be deeply integrated with the OS and
chmod method may work for
.jar files but may not actually work for all Java executables.
Important: I am not talking about Java browser plugin. I'm talking about Java on my linux system. I chose linux because it didn't have many malicious rats and botnets like Darkcomet, Poison IVy, Zeus. However there are Java rats like Jrat. Which could be autostarting once I accidentally gave them root.