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.

I download the jdk-7u9-linux-i586.rpm (not the rpm.bin)

I use code rpm -ivh jdk-7u9-linux-i586.rpm.

But it cannot install it succesfully, why??

I use google to search the anwser, but they all about how to install a "bin" file, not the "rpm" I download at the java.com its file is the "rpm", not the "XXX.rpm.bin"

Now I have no idea about this.

share|improve this question
    
Rpm packages are for Red Hat based distributions, although they can be installed on other distros. What errors are you getting? There's other ways to install jdk on Ubuntu: http://askubuntu.com/questions/21561/how-to-install-jdk-and-netbeans –  LnxSlck Dec 11 '12 at 14:30
    
You should follow this askubuntu.com/q/55848/65926 –  Eric Carvalho Dec 11 '12 at 15:08
1  
With Linux, you usually do not download stuff from websites. Check out the “Software Center” and search for the Java Devolpment Kit there. –  queueoverflow Dec 11 '12 at 15:25
    
@queueoverflow Since the Oracle JDK is no longer in the Ubuntu repositories, it will not be in the software center. –  David Kohen Dec 11 '12 at 15:39
add comment

1 Answer

In oracle.com there is an option to download a "Linux" version that is a tar.gz file which is the correct option in the case of Ubuntu.

However, it is possible to find 3rd party packages online that have Oracle Java packed as an installable package on Ubuntu, however, since these packages are from 3rd parties, trusting them is your responsibility.

share|improve this answer
add comment

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.