How to configure Java on Ubuntu

I’ve got a few Ubuntu systems lying around, and I’ve recently started playing around with Apache Hadoop.
I had several versions of the jdk installed including the one I wanted “sun-java6-jdk” however the gcj one was the default system.
There are two steps required to change the default JVM.
1) Edit /etc/jvm, and make sure the desired JVM [...]

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Technorati
  • Reddit