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!

Comments

Avi Hayoun said…
hi david.
thanx for the great tutorial. helped me a lot.
i read in some other places that there are a whole bunch of javac files lying around on a fresh install of ubuntu 10.4 and that when installing the jdk, one must configure the system to use the new javac by default. can you explain how this can be done?
David Latham said…
Hi Avi,

Thanks for the feedback. I am glad I could help. To be honest I don't really write code in Java. I need it to be installed so I can run the tools I need. Maybe I am just old skool, but I really like to be able to execute my java apps directly. With the JDK installed, I am able to run Netbeans which I use for php - symfony development and a neat little mind mapping tool called Freemind which I have covered before on this blog.

Try these links for more info:

* http://www.cyberciti.biz/faq/howto-ubuntu-linux-install-configure-jdk-jre/

Otherwise it might just work if you exported the JAVA_HOME environment variable and added the path to $HOME/SDK/jdk/bin to your PATH environment variable.

There is a bunch of stuff out there on installing the sun java platform direct via apt-get. If you did it this way you would just be able to use the update-java-alternatives command.

Sorry I can be of more help. I am one of those silly people who like to run their java apps off stand alone instances of java and from inside the home directory.
Jai said…
Thanks. Saved me hours. I don't understand why linux guys have tendency to break existing stuff. I guess it's the lack of creativity in the daily chores of programming.

Popular posts from this blog

Automatically mount NVME volumes in AWS EC2 on Windows with Cloudformation and Powershell Userdata

Extending the AD Schema on Samba4 - Part 2

Python + inotify = Pyinotify [ how to watch folders for file activity ]