I just finished the install and proceeded with installing JAVA. All is well, of course I haven't rebooted yet. But I was able to install the Java SDK from sun. I chose the compress rpm. I like rpm's they are nice and neat. No worries with ./configure, make, make test, make tea, make install, make clean. Just rpm -Uvh package_name.rpm.
Ok so I downloaded the rpm directly from sun for version 1.4.2_05 (j2sdk1.4.2_05.rpm.bin)
http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-1.4.2_05-oth-JPR&SiteId=JSC&TransactionId=noregI used SSH ftp to put it on my SME Server.
I set the permissions executable (chmod 777 j2sdk1.4.2_05.rpm.bin)
I ran j2sdk1.4.2_05.rpm.bin, which after several screens of licensing unzipped the rpm.
I installed the rpm (rpm -Uvh j2sdk1.4.2.rpm)
I ran updatedb to allow me to use the locate command. I use the locate command alot, it makes it very easy to find stuff. Doing a locate java showed that it was installed in the /usr/java/j2sdk1.4.2_05 directory.
I opened .bash_profile and added the JAVA_HOME pointed at the /usr/java/j2sdk1.4.2_05 directory. I added ./ and /usr/java/j2sdk1.4.2_05/bin to the path. Then resourced the environment by issuing a . .bash_profile.
Here is what my .bash_profile looks like now:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:./:"/usr/java/j2sdk1.4.2_05/bin"
BASH_ENV=$HOME/.bashrc
USERNAME="root"
JAVA_HOME="/usr/java/j2sdk1.4.2_05"
export USERNAME BASH_ENV PATH JAVA_HOME
I tested with a good ol echo $JAVA_HOME, had to do it twice because I misspelled it the first time. I know how do you misspell Java_home, well I did.

echo $JAVA_HOME produced /usr/java/j2sdk1.4.2_05
All is looking good so far. So on to the next step. A test application. I whipped up the all too famous HelloWorld.java example
<pre>
public class HelloWorld {
// Display "Hello World!"
public static void main(String args[]) {
System.out.println("Hello World!");
}
}
</pre>
put that in HelloWorld.java, saved it and then ran javac HelloWorld.java and out came HelloWorld.class.
Next test run it, I issued the java HelloWorld command out popped Hello World!.
The rest of the How to install a JDK on SME about setting up the templates and actions I do not understand but will be reading over more closely to see if it will affect what I did. The good news is that it all seems to be working.
I hope this helps you get it going on your machine. Please let me know if this doesn't work and we can still colaborate on it.