How to install java jdk on ubuntu

    To install java on ubuntu follow the steps
    1. First to get update
    mohit sharama@ubuntu $:  sudo apt-get update

    2. Install jdk and plugin

    mohit sharama@ubuntu $: sudo apt-get install sun-java6-jdk sun-java6-plugin

    3. Check if its installed fine and version installed

    mohit sharama@ubuntu $:  java -version
    5
    Average: 5 (1 vote)