Replace OpenJDK with Oracle JDK. Here carefully replace the JDK path according to your installation
sudo apt-get purge openjdk-\* sudo update-alternatives --install "/usr/bin/java" "java" "/home/ramanan/dev/sdk/jdk1.6.0_26/jre/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/home/ramanan/dev/sdk/jdk1.6.0_26/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/home/ramanan/dev/sdk/jdk1.6.0_26/bin/javaws" 1 sudo update-alternatives --set java /home/ramanan/dev/sdk/jdk1.6.0_26/jre/bin/java sudo update-alternatives --set javac /home/ramanan/dev/sdk/jdk1.6.0_26/bin/javac sudo update-alternatives --set javaws /home/ramanan/dev/sdk/jdk1.6.0_26/bin/javaws