Install Sun Java JDK
1. You should install a Sun/Oracle Java SDK. Use Oracle's installation instructions. Choose the appropriate 32-bit or 64-bit Linux installer, for example jdk-6u27-linux-x64-rpm.bin, and install it.
Creating symbolic links as follows is useful (alternatively use the 'alternatives' command to manage JVMs):
...