i am unable to set classpath
By Daniel Rodriguez •
When I try to add classpath using export CLASSPATH=/location, it updates the CLASSPATH temporarily.
When I look at the classpath using echo $CLASSPATH, I can see that the changes are updated in classpath, but when I close and reopen the terminal, I can not see the update which I did.
Tell me how to add a classpath permanently.
11 Answer
The export CLASSPATH=/location command will work only for the current terminal session. To make the changes permanent add the line
export CLASSPATH=/location
to ~/.bashrc or ~/.profile