Home / Utilities / Completely remove Java from Ubuntu

Completely remove Java from Ubuntu

There maybe many reasons why you might want to remove Java from your system. Whatever the reasons, follow the procedure below to uninstall Java from your Ubuntu system:

Remove all the Java related packages

First run the below three commands one by one to remove all Java related packages like Sun, Oracle, OpenJDK, IcedTea plugins, GIJ:

Purge config files

After removing all the packages you need to purge all the config files. For that run the following command:

Remove cache directory

After purging the config files we need to remove Java config and cache directory from your system. Run the following command to remove the cache directory:

Remove manually installed JVM’s

If you have installed any other JVM’s then this is the time to remove them. Run the following command:

Remove all leftover Java entries

After uninstalling all the java components from your system some java entries might still be left in your system. To get rid of them run the following command:

Remove java directories from system

This is the final step in removing Java from your system. After uninstalling the java packages the java directories might still be there in your system. To remove them you need to first find if there are any left. Use the following commands to find any leftover directories:

If after running the above script you get any output similar to ‘jre1.5/bin/pack200’ then run the following command (replace jre1.5 with the directory name that you got in the output at the terminal) to remove the leftover java directory:

 

About cmadmin

Web Developer & Designer | Android App Developer

Check Also

top programming language

Top 10 programming Languages By Google

Top 10 Programming Languages Trends 1. SQL SQL is a standard language for accessing databases. …

Popular Programming Languages

10 Most Popular Programming Languages Today

Programmers are in high demand these days-their fluency in coding language is invaluable. Knowing various programming languages is a no brainier for engineers, but a basic understanding of the various programming languages can benefit anyone, even if you're not looking to become a master coder. Grasping some general understanding of coding can help you make the right hires for your business needs, communicate better with the engineers on your team, and prevent any awkward misunderstandings (Ruby isn't a gem and Java isn't an excellent cup of coffee). Plus, with coders earning high salaries, you might want to consider it for a future career move! So what do you need to know?

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
%d bloggers like this:
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH