As I am a java developer I need the sdk. So here is my howto for installing the j2sdk. The jre has got less tools to update in the alternatives.
Repository packages you'll need
- build-essential
- fakeroot
- java-common
Install the patched java-package
Download the patched java-package from this post or my attachment below. Untar it
Code:
tar xvfz java-package-0.28ubuntu1.tar.gz
Install it
Code:
sudo dpkg -i java-package_0.28ubuntu1_all.deb
Create the package
Download Java 6 from sun and cd into the same directory. Now issue
Code:
fakeroot make-jpkg jdk-6-linux-i586.bin
Finally install it
Code:
sudo dpkg -i sun-j2sdk1.6_1.6.0_i386.deb
Update the alternatives
general for jre
Code:
sudo update-alternatives --config java
sudo update-alternatives --config javaws
sudo update-alternatives --config firefox-javaplugin.so
sdk alternatives
Code:
sudo update-alternatives --config javac
sudo update-alternatives --config rmiregistry
sudo update-alternatives --config rmic
sudo update-alternatives --config rmid
Better check all your alternatives. I prefer to leave the jar tool with gcj as this native and has no new features.
for sun java
Code:
ls -la /etc/alternatives/ | grep j2
and for gij stuff
Code:
ls -la /etc/alternatives/ | grep java
Have fun with mustang
Bookmarks