Today, I downloaded the latest java `jre` which is a **.bin** file

By mistake, I installed it on my desktop by running `./jre`. I want to remove this installation, move the **.bin** file to somewhere else and install it again

I tried `sudo apt-get remove --purge jre` gives

```
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Virtual packages like 'jre' can't be removed
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

```

Note: I can't use synaptic package manager, [here's why](https://unix.stackexchange.com/questions/31599/mint-12-synaptic-package-manager-error/31648#comment43265_31648), so I have to do everything from the terminal until the problem gets fixed.

The folder where the JRE is located is called **jre**.

**Edit: @stew**

just installed java jre

```
sudo echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
sudo apt-get update
sudo apt-get install update-sun-jre

```

it's the latest version. so i just have now to remove the **.bin** file and the extracted **jre** folder, would your method still works?

Why to use open jdk over jre?