I'm trying to install JDK on my Ubuntu virtual machine to use it for Netbeans but for some reason it won't work. I downloaded JDK from oracle's site, the .rpm file. I read online that I should use
sudo alien -g packagename.rpm
to change the file from .rpm to .deb but it just like extracted my archive and nothing else. There's no .deb file anywhere, no executable either. I'm completely lost. Now if I do sudo aline -g package.rpm
again, it says that there's already a folder with the name created but I'm stuck. What else should I do to install the JDK?
Best Answer
First read the whole answer. The first part shows you your errors and the second part shows you that
alien
is not necessary.First Part
Use
-d
to create a DEB fileor
from man alien
Second Part
To install Oracle Java you don't need
alien
and a RPM file. Simply use the following commands.