LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 09-23-2002, 11:53 PM   #1
chandhru
LQ Newbie
 
Registered: Sep 2002
Posts: 2

Rep: Reputation: 0
How to set PATH permanently


Hi,

I am trying to set PATH permanently for java, but i get errors , i used the following commands

PATH = /home/ust/...j2sdk1.3.1_04/bin:$PATH
it worked properly, then i used
.$HOME/.profile (I got file or directory not found) also i tried

.$HOME/.bash_profile ( i got the same error)

any help appreicated
 
Old 09-24-2002, 12:26 AM   #2
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
.$HOME/.profile

is there a space between "." and "$HOME"? There needs to be.
Another solution is to do:

source $HOME/.profile

Good luck.
 
Old 09-24-2002, 12:34 AM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
Sorry, I may have mis-answered. . .

It's true that you need a space between the "." and "$HOME", but if you
are running a bash shell, you need to do the following first:

export PATH = /home/ust/...j2sdk1.3.1_04/bin:$PATH

You should put this in your $HOME/.profile

If you are running a c-chell (csh, tcsh, etc.), you need to have:

setenv PATH '/home/ust/...j2sdk1.3.1_04/bin:${PATH}

and you should put this in your ~/.login
(~ = $HOME)

To check if your PATH is set, you can do the following:

printenv PATH

If nothing is returned, it's not set.

Cheers,
Moses
 
Old 09-24-2002, 12:43 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,425

Rep: Reputation: 100Reputation: 100
could be the file is called
~/.bashrc
cheers, jens
 
  


Reply


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
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
edit value of PATH permanently rsumbeling Linux - General 2 12-13-2004 10:57 AM
permanently adding to the path hyphenage Linux - General 12 07-16-2003 01:14 AM
setting PATH permanently evian Linux - Software 3 03-14-2003 11:29 AM
How to set path permanently for a particular user Sifvion Slackware 14 10-16-2002 11:02 AM


All times are GMT -5. The time now is 04:33 AM.

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