Hello,
I have installed java into my system and I want to add it in the path variable. I used the command
PATH=/mydir/jdk1.6.0/bin/:$PATH
My problem is that kubuntu already has the java command, so when I write "java" it uses the default version and not the one I have installed.
What could I do to change that?
Thanks in advance!
I have installed java into my system and I want to add it in the path variable. I used the command
PATH=/mydir/jdk1.6.0/bin/:$PATH
My problem is that kubuntu already has the java command, so when I write "java" it uses the default version and not the one I have installed.
What could I do to change that?
Thanks in advance!


there is a user-specific "lower level" (e.g. ~/.bashrc) as well as a system-wide "higher level" (e.g. /etc/bashrc) - in which (surprise, surprise ...) only from the latter one you will be able to take influence on what all user (incl. root) are going to experience -
Comment