Could not set enviroment variable properly
Hi, you:
I tried to set the environment variables on linux so I can develope java applications. However, after I appended /JDK/bin at the end of the $PATH variable and exported it, the basic shell commands like ls and cd went missing. I was careful enough to delimited the paths with ':'. I know the subsequent paths rely on the preceding ones in the $PATH variable. Is there any recommended location in the $PATH where I should put JDK/bin? Thanks and Best Regards JimOrJoe |
Quote:
Code:
PATH=$PATH:/JDK/bin Code:
echo $PATH |
also as
Code:
export PATH |
Hi, Buddies up stairs:
Just so you know, I had this issue taken care of. Strange as it is, it worked only if I ran the commands like this: export JAVA_HOME=jdk path export PATH=$PATH:$JAVA_HOME/bin Thanks JimOrJoe |
Cool,
Sounds like the first you might have exported PATH=$JAVA_HOME/bin:PATH instead of PATH=$JAVA_HOME/bin:$PATH I've done it before, too. At those times, it's good to know the absolute path to all the commands you need to reset it :) , Mike |
Quote:
|
All times are GMT -5. The time now is 07:55 PM. |