• 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

set the path  RSS feed

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are two places that you can put it. If you want it to be in the path for all users of your system put it in /etc/profile
If you want it to be available to just you, put it in ~/.bashrc
Adding it to your path is probably best with this line which only adds it to the path if it is not already in the path. It will work in either of the two files:
if ! echo $PATH | /bin/grep -q "/usr/java/j2sdk1.4.0/bin" ; then
PATH="$PATH:/usr/java/j2sdk1.4.0/bin"
fi
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a question in here somewhere?
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that is related to my question. Thanks for your kind help.
May I ask you is it "Shell script"?
Andrew
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!