Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I'm new to ubuntu (but i like it a lot), so please bear with me.

I want to install Java, but which one should I install?

  • The RPM or the normal one?
  • 32bit or 64bit?

From what I know, even windows 64 bit is still using java 32 bit. This thing make me confused.

I'm asking here just to make sure everything is going to be all right, because I will need my system to be ready to code (eclipse :D) pretty soon, so I want to avoid any trouble now.

Thanks for your help, and sorry for my basic question.

share|improve this question

marked as duplicate by dobey, Kevin Bowen, karel, Warren Hill, Jorge Castro Oct 8 '13 at 18:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I don't think there is a reason not to use 64-bit Java on 64-bit OS, be it Linux or Windows. –  MadMike Oct 7 '13 at 13:53
    
@MadMike because im new to ubuntu, i prefer to avoid using terminal for now. Thanks for your help :D –  Blaze Tama Oct 7 '13 at 13:55
    
However, im still confuse, which one should i download? The RPM or the other one? –  Blaze Tama Oct 7 '13 at 13:55
    
Use the DEB-files whenever possible –  MadMike Oct 7 '13 at 14:27
1  
If you need to install the latest eclipse, usw this [article] ( askubuntu.com/questions/26632/how-to-install-eclipse) –  MadMike Oct 7 '13 at 15:46

2 Answers 2

up vote 3 down vote accepted

If you are using Ubuntu, you don't need to worry about this. Open the software center and search for eclipse. The installation of eclipse will also take care of the Java jdk.

share|improve this answer
    
wow, this is a good news, even better than windows :D I will try it out and let you know what happened. Thanks :D –  Blaze Tama Oct 7 '13 at 13:56
    
And one more question, will it automatically choose what version i download? (like indigo, juno etc) –  Blaze Tama Oct 7 '13 at 13:58
    
the version of eclipse will be the latest one in the Ubuntu repository. So, you will not given a chance to select the version. in 13.04 it is Indigo, afaik –  Anwar Shah Oct 7 '13 at 14:07
    
@madmike when someone says he need eclipse to code java, you don't need much intelligence to infer that he needs jdk. fyi, without jdk you can't develop java code –  Anwar Shah Oct 7 '13 at 15:26
    
Thanks for your help :D –  Blaze Tama Oct 9 '13 at 9:44

Just open a terminal and type

sudo apt-get install default-jre

Enter your pasdword and wait. Now you have the normal JRE on your computer.

share|improve this answer

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