Pernmanently updating PATH
Tryig to install the Java 1.4.2 SDK and need to update the PATH
export PATH=$PATH:/usr/local/j2sdk1.4.2_05/bin works in the shell, but when I asdd the command to .bashrc in my home directory or /etc/bashrc it won't work. I have tried logging out and tried restarting, it just doesn't work. I am new to mandrake having been a long time Fedora user (I still use Fedora on another box, I'm just trying this out) It works in fedora. Btw, my shell IS bash |
My shell is bash and I set my path in my ~/.bash_profile. Everytime I open a shell, this file is sourced and my path will be set. Edit for your needs.
PATH=$PATH:$HOME/bin PATH=$PATH:/sbin/:/usr/local/bin/ PATH=$PATH:/usr/java/j2re1.4.2_01/bin export PATH |
try putting it in ~/.bash_profile or in the global file /etc/profile
|
Worked like a charm
|
All times are GMT -5. The time now is 11:57 PM. |