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 |
add the export bit into your .bashrc,if you are using bash
ie in $HOME/.bashrc |
put the path line in your /etc/profile
|
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
|
I was assuming it was a personel computer.
|
All times are GMT -5. The time now is 06:49 AM. |