LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 08-15-2004, 03:33 PM   #1
Tamsco
Member
 
Registered: Jul 2004
Location: 1st Brillouin Zone
Distribution: Gentoo (not ricer Gentoo)
Posts: 165

Rep: Reputation: 30
Pernmanently updating PATH


Tryig to install the Java 1.4.2 SDK and need to update the PATH

export PATH=$PATH:/usr/local/j2sdk1.4.2_05/bin works in the shell, but when I asdd the command to .bashrc in my home directory or /etc/bashrc it won't work.

I have tried logging out and tried restarting, it just doesn't work.

I am new to mandrake having been a long time Fedora user (I still use Fedora on another box, I'm just trying this out) It works in fedora.

Btw, my shell IS bash
 
Old 08-15-2004, 04:01 PM   #2
futhark
Member
 
Registered: Nov 2003
Location: Montréal (Can)
Distribution: FC4
Posts: 110

Rep: Reputation: 15
My shell is bash and I set my path in my ~/.bash_profile. Everytime I open a shell, this file is sourced and my path will be set. Edit for your needs.

PATH=$PATH:$HOME/bin
PATH=$PATH:/sbin/:/usr/local/bin/
PATH=$PATH:/usr/java/j2re1.4.2_01/bin
export PATH
 
Old 08-15-2004, 04:17 PM   #3
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
try putting it in ~/.bash_profile or in the global file /etc/profile
 
Old 08-15-2004, 05:58 PM   #4
Tamsco
Member
 
Registered: Jul 2004
Location: 1st Brillouin Zone
Distribution: Gentoo (not ricer Gentoo)
Posts: 165

Original Poster
Rep: Reputation: 30
Worked like a charm
 
  


Reply



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
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 07:45 AM
Apache path and kde path questions darkraider Debian 1 11-12-2005 05:07 AM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 02:23 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration