Setting Java path issues...
if anyone can help, id really appreciate it. im having some problems setting the path in my /etc/profile. ive tried adding the line export PATH=$PATH:/usr/java/jdk1.3.1_02/bin to /etc/profile, but i still can't use my java compiler unless im actually in the /usr/java/jdk1.3.1_02/bin directory or i type in export PATH=$PATH:/usr/java/jdk1.3.1_02/bin each time i log on. is there something im doing wrong? ive also tried adding the directory to the end of PATH=$PATH:/usr/X11R6/bin:/usr/games:/usr/java/jdk1.3.1_02/bin as such, but each time no luck. any suggestions, cuz this is starting to piss me off a lil :(
|
run
source /etc/profile |
after i run source /etc/profile, the path is recognized, btu as soon as i reboot im back at square one. what do i need to do to make the path permanent? and thanks for the quick response.
|
Ok, I don't know why it is bitching, try to append the java executable directory into ~yourusername/.bash_profile.
Or and I have another question, what shell do you use, type echo $SHELL and see the output, /etc/profile works for bourne and bash shells. |
ive tried that too with no luck :(..... im using bash, so its not a case of me updating the wrong profile.... is there a known bug between Mandrake 8.1 and Sun's jdk1.3.2? i just dont know what im doing wrong...
|
Sorry, I have no valid answer I ran out of options, it's definetely a bug or glitch, try to upgrade bash, I guess
|
I just hit myself with a table edge, and it occurred to me, ~yourusername/.bashrc is a startup file
try to put the export statement there. |
that did the job! thanks alot, but why do you think it wouldnt work when i placed it in /etc/profile? oh well.
|
This is supposed to be one of the startup files too, and I have no clue why it's not for you, maybe you'll need to dig deeper into your system and find out, read through man pages, and look at /etc/bashrc for any clue.
Basically man bash explains everything Quote:
|
All times are GMT -5. The time now is 06:27 AM. |