No worries. You can get the sun-java6-jdk on Ubuntu LTS 10.04. I am currently participating in the Atlassian Dragons Challenge and using Ubuntu 10.04 with Sun JDK
1) First, click on System Menu > Administration > Software Sources
2) Under the ,Other Software Tab, check Ubuntu Partner Repository
3) Click Reload and issue the following command to get the JDK through Synaptic Package Manager or APT-get
4) sudo apt-get install sun-java6-jdk and Voila :)
Setting JAVA_HOME
Some programs like Tomcat (bundled with most Atlassian products) need a JAVA_HOME variable set, so they know where Java is installed. This can be set system-wide in/etc/profile:
jturner:~$ sudo su - Password: root:~# cat >> /etc/profile JAVA_HOME=/usr/lib/jvm/java-6-sun export JAVA_HOME root:~#
The variable will be set for new terminals:
jturner:~$ echo $JAVA_HOME /usr/lib/jvm/java-6-sun jturner:~$