Hi Nithesh ,
Thanks for the help.I am sorry for that mistake.
I corrected and executed with 'mkdir ' . This time it didn't ask for password .
I was able to execute all other commands also till document step 10.
I failed to execute the command sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jre1.8.0_5/bin/java" 1 (my downloaded version is jre-8uf-linux-x64 tar.gz and while updating profile also i have corrected it as jre1.8.0_5).I am getting alternatives path "/usr/local/java/jre1.8.0_5/bin/java does not exist.
Could you please help me on this.