Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-27-2006, 10:37 AM   #1
Registered: Apr 2005
Distribution: FC 4
Posts: 30

Rep: Reputation: 15
Editing .bash_profile

Hey there,

I'm following an online tutorial to get the Java JDK installed, i'm nearly done, but i have to add the following lines to my .bash_profile

export JAVA_HOME=/usr/java/jdk1.5.0_06

I've opened it using gedit, and i'm presented with:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc

# User specific environment and startup programs


export PATH

Now this might seem silly, but what lines do i have to edit? What should the file look like when i'm finished and how do i go about saving?
Old 01-27-2006, 10:49 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to add that "export ..." line to the file and then you need to add "$JAVA_HOME/bin" (without quotes) to your PATH line, so it looks like


I don't have gedit on my system, but surely it can't be that hard to find out how to save? There should be a "Save" button on the toolbar, or at least an option to save in the File menu..
Old 01-27-2006, 12:15 PM   #3
Registered: Jul 2003
Location: NorthWest US.
Distribution: Redhat 8,9, FC3, FC4, added FreeBSD
Posts: 35

Rep: Reputation: 15
For saving in gedit. On the tool bar there is a save icon. If you do not have the tool bar turned on, use the file drop down menu, save then quit.


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
.bash_profile UmneyDurak Linux - General 1 10-18-2005 12:44 AM
.bash_profile dimi Linux - General 1 08-23-2005 09:00 PM
.bash_profile praveenv Linux - Newbie 3 08-14-2004 01:58 PM
Problems with editing proxy configurations in .bash_profile ricguitar Linux - Networking 1 07-27-2004 06:56 AM
.bash_profile wildcat22 Linux - General 3 04-13-2004 08:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:47 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