Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

@dupes in apt: clean up your /etc/apt/sources.list and /etc/apt/sources.list.d

@duplicate java: make a aptitude search openjdk | grep "i " and aptitude search java | grep "i " and apt-get delete every package which belongs to a jre/jdk (openjdk, Oracle's Java etc. pp.)

With eclipse it should be enough to use the java version with is included in your distro.

share|improve this answer
    
Thanks, but what is wrong with my post? – mifritscher Mar 5 at 13:45
    
Honestly, yes, it was already ok for me ;-) But ok, I escaped the commands and directories/files. – mifritscher Mar 5 at 14:00

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.