Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

env varibables problem

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I install a new version of J2EE1.3.1, I try to change the J2EE_HOME path in /etc/profile. But when I type env, the path is still the old one. So, I check /home/sophia/.bash_profile and /root/.bash_profile and they are correct.
What other files do I have to check ?
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you logged out and back in again, or otherwise restarted your shell? These scripts are only run when the shell starts up.
 
Sophia Choi
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did.
echo @PATH
echo @CLASSPATH
 
Sophia Choi
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works after rebooting. Thanks.
Can I restart a service without rebooting the server like "/etc/rc.d/init.d/* restart" ?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works after rebooting
Gosh. This is probably a Windows habit that I recommend you try and get out of. You should only need to reboot a Linux box when you do something really major (like install a new kernel, or some new internal hardware).
For most user-level things all you need to do is log out and log in again. Tme great majority of services (daemons in Linux/Unix terms) can be stopped, started and restarted just by logging in as root and typing (for example)
/etc/rc.d/init.d/httpd stop
or
/etc/rc.d/init.d/httpd restart
and so on.
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic