This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Class varible in linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Class varible in linux" Watch "Class varible in linux" New topic
Author

Class varible in linux

sarvan kumar
Ranch Hand

Joined: Jul 28, 2010
Posts: 66
Hi,
How to set class varible in centos permananently without restarting the system

Thanks and Regards
K.Saravanan
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

do you mean the CLASSPATH environment variable?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
sarvan kumar
Ranch Hand

Joined: Jul 28, 2010
Posts: 66
yes
sarvan kumar
Ranch Hand

Joined: Jul 28, 2010
Posts: 66
How to set jboss path in system variable? in centos
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

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.
 
 
subject: Class varible in linux
 
Similar Threads
generics
problem with my threading
inner class
outer class from inner class
JavaRanch Rule Round-up Game?