No Java in the repositories and I can’t find a .deb-package, so I have to try again an other way than I would like. The first step is to download the self-extracting Linux x64 RPM from the Sun Java Download page. After the download, you must give the extractor executing rights by
chmod u+x jre-1_5_0_09-linux-amd64-rpm.bin
Now run the executable and accept the license, after that it will extract the rpm-File and will fail to run rpm with the message:
./jre-1_5_0_09-linux-amd64-rpm.bin: 644: rpm: not found
or
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
Fehler: cannot open Packages index using db3 - No such file or directory (2)
Fehler: cannot open Packages database in /var/lib/rpm
If you get the first error you have to install alien, the other one shows us that we are on a Debain system. Now we could proceed in converting our package from rpm to deb and install it.
sudo alien -d –scripts jre-1_5_0_09-linux-amd64.rpm
sudo dpkg -i jre_1.5.0_09-1_amd64.deb
Because java is not in a ordinary binary-directory, we add it to the search-path by appending the following line to the ~/.bashrc:
export PATH=/usr/java/jre1.5.0_09/bin:$PATH
To test the new Java installation, I’ll try FreeMind using the .deb-Files from the sf.net-Page, so that we fully care about dpkg & Co. For Freemind you need some packages which are luckily available in universe, so that we just install them and after that FreeMind
sudo apt-get install librelaxng-datatype-java libcommons-lang-java libcommons-codec-java
sudo dpkg -i freemind_0.8.0+01-4_all.deb freemind-plugins-help_0.8.0+01-4_all.deb freemind-plugins-time_0.8.0+01-4_all.deb libforms-java_1.0.5-3_all.deb libjcalendar-java_1.2.2-7_all.deb
And finally it works!!!!
Technorati-Tags:java, jre, j2re, ubuntu, 6.10, edgy, 64, amd64, bit, freemind, deb, dpkg, alien
Gebloggt mit Flock
Update: Ubuntu now has a package called sun-java5-bin which solves this problem. My solution is now obsolete.