🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.uu.comp.os.linux.questions
2 messages
2 total messages Started by Torgny Johansson Wed, 29 Mar 2000 00:00
Path
#60
Author: Torgny Johansson
Date: Wed, 29 Mar 2000 00:00
8 lines
1084 bytes
How do I set the path variable in Linux? I want to use JDK and need to add
it's path to be able to compile my java apps from any directory.

Where do I set it?

Plz email any answers to torgny_johansson@bigfoot.com

Thanks alot!
Re: Path
#61
Author: 'Dungeon' Dave
Date: Wed, 29 Mar 2000 00:00
40 lines
2203 bytes
In article <8btnju$7rd$1@cubacola.tninet.se>, Torgny Johansson
<torgny_johansson@bigfoot.com> writes
>How do I set the path variable in Linux? I want to use JDK and need to 
>add
>it's path to be able to compile my java apps from any directory.
>
>Where do I set it?

In one of the startup scripts - /etc/profile for a system-wide setting,
.bash_profile in your home directory for a local setting, or .kshrc
for an individual shell setting.

Basically, it's the environment variable PATH, which needs to be
exported once set (so that shells read the same variable) - check
any of the above lines for a line that reads:

PATH=/usr/bin:/sbin: ... etc. You can either add a colon and then
the additional path bit at the end or add it on a new line with:

PATH=$PATH:/usr/bin/whatever (ie: existing path plus appended
bit).

Don't forget the command: "export PATH" a few lines afterwards.

To check it, add the lines into (for instance) .bash_profile and then
relogin. Type "echo $PATH" to see if the new path has taken.
>
>Plz email any answers to torgny_johansson@bigfoot.com

Post it in a newsgroup, read it in a newsgroup. That way others
get the benefit of your questions.
>
>Thanks alot!
>
>

-- 
 
Linux: love it or loathe it, it's here to stay!!
(I need a service pack for my tagline)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads