install from ubuntu's synaptic or apt.dont go for external max possible.
Code:
sudo apt-get install sun-java6-plugin sun-java6-jdk
^^ that's all.this will keep care of those env variables.
btwn ~/.profile is ~/.bash_profile or for the whole system /etc/profile will do.
in my debian root home dir i found a .profile file as below:
Code:
sid:~# cat .profile
# ~/.profile: executed by Bourne-compatible login shells.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
^^ so avoid the hassles always search and install from synaptic or from terminal apt-get.always update package db by pressing "reload" button in synaptic or via terminal "sudo apt-get update"
get ur /etc/apt/sources.list correct if some repos are commented by a "#".
refer more @
http://ubuntuguide.org