Tuesday, March 30, 2010

Howto Install Sun JDK with EE into Ubuntu 10.4

This tutorial is for Ubuntu 10.4 Beta. 10.4 full release is only next month. Well here you go.

  • Download Java for linux from the Oracle Sun website.
  • Download the 32bit version of libstdc++5 from here:
http://packages.debian.org/lenny/amd64/libstdc++5/download
Make sure you get the 32 bit version. It would seem that the installer for Java requires that you have a 32bit version of this library installed. I think this is for the installer GUI only.
  • Extract the library like this:
dpkg-deb -x libstdc++5_3.3.6-18_i386.deb libstdc++5
  • Copy the library into /usr/lib32
sudo cp libstdc++5/usr/lib/libstdc++.so.5.0.7 /usr/lib32/
  • Create a simlink to the file in /usr/lib32/
sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5

Now you can install java like this:
./java_ee_sdk-5_08-jdk-6u18-linux.bin 
All done!
Post a Comment