You downloaded the wrong file. RPMs are used by Fedora, Red Hat, CentOS, and SuSe (I think). Ubuntu is Debian-based, and they use ".deb" installer files.
However there's no deb-based installer for the JDK, so just use the generic install file, not the RPM one.
If my memory hasn't fuzzed out too much, there's an "alien" package installer designed to help install RPM files into Ubuntu, but I don't recommend it for this purpose. The generic install is the cleaner way to go.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Maybe you could tell us a little more about what happened when you tried to run the .bin installer.
"It wasn't successful" doesn't really give us much to work with.
After downloading it, did you change the permissions to allow it to execute?
What directory was it in?
Did you try to install it as root or as a regular user?
What error messages did you see when you tried to run it.
It's OK, Ben. The "produced rpm files" was the giveaway.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
yes ,I am working in /opt/ as a root and I changed the permission
# chmod +x <filename>.bin
and then i installed
# ./<filename>.bin
then I am asked to accept the license terms and I type "yes" .So far so good . It starts extracting , unpacking and checksumminig. After a long list of prompting , I got the .rpm file.
Of course .rpm is not usually used extension in Ubuntu. I installed alien package manager to convert it to .deb
# apt-get update
# apt-get install alien
then I try to change .rpm file to .deb
# alien <filename>.rpm
It took along time , but after all , I found the new folder with the same name with rpm file. Actually It should be changed to .deb format. right?
That directory contains many sub directories and finally I found the bin directory in which all java command exists. (I can mension the dir structure if needed).
But when I run the java command or javac command , I got error " cannot initialized VM ...... " . I think , that might be coz of unsuccessful installation.Really weired things .
That is all I got. I google many times and go to many places over the net, but I dont find the solution yet.