LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Setting the path (https://www.linuxquestions.org/questions/linux-software-2/setting-the-path-32670/)

Remco 10-13-2002 07:47 AM

Setting the path
 
Hello,

I run Peanut Linux 9.3 and I recently installed java (sdk1.4.0) and teTeX. To access the commands quickly, I added the bin directories of both to my PATH in my .bashrc file in my home directory. The PATH line in this file looks now something like this:

PATH="/usr/bin:/bin:/usr/sbin:/sbin:/opt/kde3/bin:/usr/X11/bin:$OPENWINHOME/bin:/usr/local/bin:/usr/java/j2sdk1.4.0_02/bin:/usr/local/teTeX/bin:/usr/local/sbin:."

The path to the bin directories are correct, I checked that. But now, when I start my computer and log in and I open a terminal and type which java, then it says it can't find it (it then sums the path, everything except the two path's to teTeX and java). Then when I type su and my password in the terminal and switch to root and then switch back again, and again type which java, it does find the path. It's just as if it doesn't read the file at first. Does anybody know if I have to change other files as well?

Thanks for any help!

Remco

Remco 10-13-2002 08:39 AM

Sorry guys, I found it out myself (don't know exactly why though):

When I open a e-terminal then I get the messages described in my message above, but when I take a normal X-console or X-terminal or konsole, then it's fine. I'll try it in enlightenment now, maybe that's the reason why.

Remco

Remco 10-13-2002 03:33 PM

OK,

Apparently my e-terminal only reads from the /etc/profile. OK, I don't know why, but it works now.

Remco

P.S. This turned out to be a one man show ;)


All times are GMT -5. The time now is 12:47 AM.