Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-18-2003, 03:04 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
Question Startup Files


I am using redhat9, mysql 4, apache and trying to integrate with tomcat, JDBC and J2sdk1.4.1_05. I have several problems.
I can't set JAVA_HOME permenantly. If I can't do that, I can't set CATALINA_HOME either.
I 'ls' the /etc in a terminal and the 'profile' is not a directory. What I understand is that startup files refers to /etc/profile.
I can't find it! There's 'profile.d' directory though. Are they the same?
When I type '~/.bash_profile' in the terminal, there'll be an error. There's no such file!!! I read that I have to open '~/.bash_profile' file, and add the following line:

export JAVA_HOME=/usr/local/j2sdk1.4.1_05

...then save the file, exit, and then source the file to read it and
update the settings:

$ source ~/.bash_profile

What does it mean by 'open' and 'add' and 'update'? Update what settings? Do all of that in terminal? I am so stuck.
Please, please help as I am quite new to linux!!!

Thank you!
Old 09-18-2003, 05:01 AM   #2
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
No panic If someone or something tells you to open a file, and that file doesn't exist, then just create the file. Open an editor, edit away, and save this as a new file, with the appropriate name.

Yes, /etc/profile IS a file, and this is the global setup file if you're using bash. It is one of the places where you can put your JAVA_HOME or whatever variable you want. ~/.bash_profile, ~/.bash_login, and ~/.profile are personal setup files for each individual user.

These setup files are scripts that are run when you're starting your session. If you make changes in one of these files, you'll also have to update the settings. This is simply done by doing

$ source ~/.bash_profile



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Startup files in Suse AmdMhz Linux - Software 6 09-28-2004 12:31 AM
How to mount files on StartUp GeoMiB Linux - Software 3 06-01-2004 09:02 AM
startup files or scripts BajaNick Slackware 10 05-25-2004 02:12 AM
Shell startup files Fernando534 Linux - Newbie 3 05-07-2004 02:45 PM
prompt/startup files snocked Linux - Newbie 9 06-03-2003 12:32 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration