How do I completely uninstall Eclipse so I can sort out my Subclipse trouble?
Asked Answered
F

8

12

I am having trouble finalising the installation of Subclipse into my Eclipse installation.

First some background: I installed Eclipse in 64-bit Ubuntu (in a VM). I tried to install Subclipse but on the final screen, the button to finish was greyed out (apparently this is a known unresolved issue). I cancelled the installation.

The problem is that when I tried to add the plug-in again, it says that it's a duplicate location (http://subclipse.tigris.org/update_1.8.x). So I tried to search for the plug-in in the installed list (help -> about eclipse platform -> installation details), but I can't find Subclipse anywhere.


I have tried uninstalling Eclipse completely. Didn't solve the problem. I'd like to not have to completely reinstall Ubuntu in this VM. Is there any way I can completely clear any and all configurations so I can start from square one?

Fluorescent answered 20/11, 2011 at 4:1 Comment(0)
M
18

The following solution assumes you installed with the installer (as opposed to your package manager). There is a hidden file in your home user directory (the path is /home/user). You can use the shortcut Ctrl+H to discover it. And then you would find a folder named .eclipse, just remove this folder, as it includes all the setting you have set before.

Alternatively, you can open a terminal, and use the following command:

rm -r ~/.eclipse

Ubuntu, and all Unix systems are similar. They are all Inheritance systems, which will keep the user's setting in home.

Material answered 20/11, 2011 at 7:56 Comment(2)
I had an issue where I accidentally deleted my workspace manually. As it was the default workspace, it wouldn't find it and refused to open. Install/uninstall wasn't enough. This, however, fixed it. Thanks a lot!Armin
Thank you for the answer Wang Ruiqi! rm -fr ~/eclipse is probably needed too, or where the Eclipse IDE application was installed.Parallelogram
M
6

The 2 most popular ways of removing eclipse are to either

  1. go into the 'software center', search for eclipse, and then remove it, or

  2. remove it from a terminal. For example: $sudo apt-get autoremove --purge eclipse

1 seems to be the better way, as 2 leaves pieces behind. In either case, do the following after you remove it:

$whereis eclipse

and if there are any pieces left behind, remove them.

You also should have a .eclipse directory in your home directory. Neither 1 nor 2 will wipe those out. So:

home/yours$rm -r .eclipse

OK, so now to reinstall it, you could use apt-get, or software center, or download the compressed archive file from http://www.eclipse.org/downloads/ I prefer to download the latest version. I also prefer eclipse 'classic', and then I can add the features I need to it. So after downloading:

$sudo tar xvf eclipse-SDK-4.2.1-linux-gtk-x86_64.tar.gz -C /opt

To run:

$/opt/eclipse/.eclipse

There are then a few different options for creating a shortcut. Here's a quick run down of one that should only take a few seconds (you may not need sudo and chmod):

$sudo touch /usr/share/applications/eclipse.desktop
$sudo chmod 777 /usr/share/applications/eclipse.desktop
$vim /usr/share/applications/eclipse.desktop 

and paste:

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=eclipse.desktop

and then run:

$cd /usr/local/bin
$sudo ln -s /opt/eclipse/eclipse
$eclipse

Then you can just right click on the launcher icon (in Ubuntu 12.04 at least) and lock it to the launcher.

Monostylous answered 21/10, 2012 at 3:4 Comment(0)
G
3

For others having this problem (as I just was):

  1. Click "Available Software Sites" link under the "Add..." button
  2. Highlight the listing that is causing you the problem and click "Remove"
  3. Click "OK"
  4. Click "Add..." again and enter the URL once again

By 'this problem' I mean receiving the "Duplicate Location" error that won't let you click "OK "when you add the URL of Subclipse into the Location field after clicking "Add...".

Galactose answered 2/5, 2012 at 4:23 Comment(0)
D
3

If Eclipse was installed using snap:snap remove eclipse

Diffractometer answered 27/8, 2021 at 12:41 Comment(0)
Z
2

Start by finding any left-behind eclipse configuration:

#sudo updatedb

#locate eclipse

This may find some things left behind you were unaware of.

Zonazonal answered 20/11, 2011 at 4:9 Comment(2)
Holy cow there's hundreds of files. Is there a quick way to delete them all?Fluorescent
Stop deleting stuff, see my answer!Delastre
D
1

The "duplicate location" is unrelated to an actual previous install of Subclipse; it just means you tried to define the update site a second time. Having defined it once, you don't need to do it again, and you'd simply skip that step on subsequent attempts. Reinstall Eclipse, and then just don't try to redefine the repository location more than once.

And make a nice cup of tea and relax.

Delastre answered 20/11, 2011 at 4:9 Comment(2)
Do I still use the "get new software" option? I reinstalled eclipse and tried to use "get new software" and it still complains about a duplicate location.Fluorescent
You might need to go into the list of update sites and remove one of the two copies.Delastre
U
0

Try the following command as root user

sudo rm -r ~/.eclipse
Underlet answered 27/3, 2019 at 9:55 Comment(0)
P
0

In the case where you install eclipse using snap, then the command below should do it.

sudo snap remove eclipse
Pilchard answered 14/10, 2022 at 15:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.