By default you will have programs installed that use Java, so you can't remove it easily. What you can do easily, is remove Java from your web browser. That is the primary concern in all these warnings you read about also, using an unpatched Java version in your browser. You can remove IcedTea, which is the Java plugin for your browser, with:
- Code: Select all
sudo apt-get --purge autoremove icedtea-*
Also note that Oracle Java (the one in all these warnings) is not the same product as OpenJDK Java, which you have installed. Still, it may be a good practice to not use Java in your web browser.
If you must use Java in your web browser, because for example some banks are using Java for their online banking, then install a content blocker such as NoScript in your web browser. With that you can make a whitelist of websites that are allowed to use Java, and all other websites will be blocked from using Java (but NoScript can do this for Flash, JavaScript, and other such content as well).