LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   adding java jdk to path (https://www.linuxquestions.org/questions/linux-newbie-8/adding-java-jdk-to-path-249923/)

snecklifter 11-01-2004 02:46 PM

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

acid_kewpie 11-01-2004 02:48 PM

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.

aaa 11-01-2004 02:48 PM

Add
Code:

export PATH=$PATH:/usr/java/jdk1.5.0/bin
to one of the startup scripts (like /etc/profile)

snecklifter 11-01-2004 02:55 PM

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

acid_kewpie 11-01-2004 02:58 PM

thanks. i'll make it ... i can feel it in my bones.


All times are GMT -5. The time now is 12:03 PM.