How do I permanently set my Java path in Linux?

How do I permanently set my Java path in Linux?
Answer
You may set $PATH permanently in two ways.
  1. To set the path for a particular user: You may need to make the entry in file . bash_profile in the home directory for the user. …
  2. To set a common path for all system users, you may need to set the path like this: echo “export PATH=$PATH:/path/to/dir” >> /etc/profile.
 

Tìm kiếm

Back
Top