LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   java, path not saved? (https://www.linuxquestions.org/questions/linux-software-2/java-path-not-saved-78479/)

spchehe 08-02-2003 10:40 PM

java, path not saved?
 
Hi

I've just installed java SDK 1.42 and set the path:
export PATH=$PATH:/opt/j2sdk_nb/j2sdk1.4.2/bin/ and it worked when I complied a program. But after I restarted my computer and checked the path: echo $PATH, the path was not there and "javac" wasn't recoginzed!? Can anyone tell me how to solve this?

Thanks

rch 08-02-2003 10:48 PM

add the export bit into your .bashrc,if you are using bash
ie in $HOME/.bashrc

darin3200 08-02-2003 10:50 PM

put the path line in your /etc/profile

rch 08-02-2003 11:02 PM

well darin3200,if spchehe is just a regular user and has no administrative previlages,how do you think s/he is going to modify /etc/profile

darin3200 08-02-2003 11:18 PM

I was assuming it was a personel computer.


All times are GMT -5. The time now is 06:49 AM.