• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class varible in linux

 
sarvan kumar
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How to set class varible in centos permananently without restarting the system

Thanks and Regards
K.Saravanan
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do you mean the CLASSPATH environment variable?
 
sarvan kumar
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
sarvan kumar
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to set jboss path in system variable? in centos
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, you shouldn't have to reboot a Linux for anything short of a kernel upgrade.
You set an environment variable like this:

If you want the variable to be set "permanently", you can append that command to the .bash_profile file in your home directory.
If you want every user to have the same setting, append it to the end of the /etc/profile file.
Once you change a configuration file, you'll have to either log out and log back in or issue the source command to re-initialize the environment.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic