xNYx
1
Hi everyone,
I have added this to my .bash_profile. Whenever I log in and when I type javac I get a error message (java: command not found). Does the order counts?
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin
JAVA_HOME=$JAVA_HOME/usr/local/jdk1.3.1_02
export JAVA_HOME PATH
Thanks
ny
system
2
the order does matter - it can't place a value into PATH if there is none (at that point JAVA_HOME isn't a variable)
Put your lines in this order and remove $JAVA_HOME (unless it was equal to something before this (which I doubt)).
JAVA_HOME=/usr/local/jdk1.3.1_02
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin
xNYx
3
how about export?
does the order count for that too?
system
4
The export order does not matter. Check the man page on ksh and export