Originally Posted by gsl
If you want these settings to work in a login shell, I think you need to put them in .bash_profile, not .bashrc.
where do i find the .bash_profile? is it in the root? or i need to create it like the .bashrc?
And second, where does it specify at the first place that make the system to look for the java path in /usr/lib/java instead of my path stated in the .bashrc?