Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm on linux mint 12

I have installed Java, following the NetBeans instructions. It wasn't working on chrome, so I installed it like that:

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

without uninstalling the other one, now I have 2 or 3 java on my PC, NetBeans is not running anymore and whenever I do sudo apt-get update I get warnings about dupes.
I just want to keep one Java which I have installed without following netbeans instructions, I'm going to uninstall NetBeans and use Eclipse.

Fslint is not finding the dupes, I don't why. I don't trust tools, I only trust terminal, so how to do it from there?

share|improve this question
I'm not sure if this helps but you can choose default java through the following: sudo update-java-alternatives -l lists all java versions. sudo update-java-alternatives -s <your_choice> will set it. – user14517 Mar 3 '12 at 11:57
@Nunoxic when i run sudo update-java-alternatives -l I see java-1.6.0-openjdk 1061 /usr/lib/jvm/java-1.6.0-openjdk that's strange! I'm sure that i installed jre! how to remove openjdk and clean everything up – Lynob Mar 3 '12 at 16:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.