M BUZZ CRAZE NEWS
// news

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.

empty classpath

Tell me how to add a classpath permanently.

1

1 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy