How can I uninstall java development kit on Ubuntu?

15,236

Solution 1

Try in a console "aptitude search jdk" and watch at the results.
You can spot a character on the far left of each line. If that character is an 'i' it means that the package is currenty installed on the system. Probably it will be something like "sun-java6-jdk" or "openjdk-6-jdk".
At that point you can do "sudo aptitude purge $1" where $1 is the name of the package you have found from the previous result list.

Solution 2

Have you tried using Synaptic Package Manager to locate the Java 'stuff' you want to remove?

Share:
15,236

Related videos on Youtube

Roman
Author by

Roman

Updated on September 17, 2022

Comments

  • Roman
    Roman over 1 year

    Some time ago I have installed Java Development Kit on Ubutu. I typed "sudo apt-get java" or something like that. After that got "java" and "javac" commands in my command line. Now I would like to uninstall this JDK. I tried to type "sudo apt-get remove java". And as the result I get "E: Couldn't find package java".

    Could anybody, pleas, help me with that?

  • Chris Nava
    Chris Nava about 14 years
    Be careful to only remove the JDK not all "java" as the JRE is required by many things.