problems setting up PATH in ubuntu
I'm having problems setting up my path in ubuntu
i edited the .bash_profile and put a PATH=$PATH:/opt/java
i expected the /opt/java would be in my PATH the next time i logged in, but to my disappointment, when I did an "env" it still wasn't included.
i also tried editing the /etc/profile and it also didn't work, even if I reset my pc.
but when I just do the setting up on the command line, it went well.
so i tested writing a simple test.sh which contains a "PATH=$PATH:/opt/java". when i executed it, it also didn't work. my path variable is still the same.
why is this?