LinuxQuestions.org
Visit Jeremy's Blog.
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 11-01-2004, 02:46 PM   #1
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Rep: Reputation: 30
adding java jdk to path


Hi folks,

I've downloaded and installed the java 1.5 JDK but can only temporarily specify the path. I do the following :

Code:
PATH=$PATH:/usr/java/jdk1.5.0/bin
and its fine until I close shell or reboot, then it loses it. What gives?
Regards
Chris
 
Old 11-01-2004, 02:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,374

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
add this to the end of youre ~/.bashrc or ~/.profile if it's for you user. /etc/bashrc or /etc/profile for system wide effect

this will not persist anywhere. i'd be scared if it did to be honest... it's a low level thing you're doing... the kinda thing that windows might suck away into an obscure registry key, but not here, hell no.
 
Old 11-01-2004, 02:48 PM   #3
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Add
Code:
export PATH=$PATH:/usr/java/jdk1.5.0/bin
to one of the startup scripts (like /etc/profile)
 
Old 11-01-2004, 02:55 PM   #4
snecklifter
Member
 
Registered: Mar 2004
Location: UK/West Yorkshire/Huddersfield
Distribution: Fedora 7
Posts: 982

Original Poster
Rep: Reputation: 30
Thanks guys. Its an environmental variable (same same but different) in windows and I guess profile is the similar? Anyway, thats worked just closing and re-opening Konsole so much appreciated. I hope you get to LinuxWorld next year Acid.
Regards
Chris
 
Old 11-01-2004, 02:58 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,374

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
thanks. i'll make it ... i can feel it in my bones.
 
  


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
compile java JDK 1.4 kernelvn *BSD 2 06-21-2005 09:42 PM
Adding Java to root users PATH? infornography Linux - Newbie 5 05-26-2005 07:49 AM
Java JDK 1.5.0.01 and Open Office 1.1.4 hazelnusse Linux - Software 0 01-19-2005 04:26 AM
Adding Java to my path in the .bash_profile file .... jmax24 Linux - General 5 04-20-2004 01:14 PM
Adding Java to my environment path? C8H10N4O2 Linux - Software 6 04-19-2004 01:38 PM


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