$ chmod 777 jdk-6u17-linux-i586.bin
$ ./java_ee_sdk-5_08-jdk-6u17-linux.bin
After that point edit your /etc/profile file to add lines below:
$ sudo gedit /etc/profile
PATH=(yourJDKInstallationFolder)/bin:${PATH}
export PATH
JAVA_HOME=(yourJDKInstallationFolder)
export JAVA_HOME
Save /etc/profile and logout. To test your JAVA_HOME location and installed java version type from the console:
$ java -version
$ echo $JAVA_HOME
