Permanently Setting the Java_Home
I want to permanently my "JAVA_HOME" (for a windows tem) to the PATH for my user (or all users if that's easier becuase I am the only one) in Fedora (Core 2). But I am a extreme newbie and can't seem to figure out how to add it so that it's always there. I am trying to install eclipse, which requries the jdk to run........
I have tried doing this throug the terminal which allows me to set it for that terminal session, but it dies after that and Eclipse can't find it when i do get it set....... I have heard about editing the .bashrc file but when I try to look at it through the GUI I can't find the file in the file browser. And when I find it in the terminal, I can't figure out how to open it to edit it. This is becoming very frustrating so any help would be appreciated. I know this should be a easy task so I don't understand what part I am not doing correctly to get it to work. Thanks |
Files beginning with a . (dot) in Linux are hidden files so your GUI will not see them probably. There's undoubtedly an option somewhere in your file browser to view hidden files. The easiest thing to do though is just edit it from the command line. I suggest you use pico as it is a newbiew friendly command line text editor. Type
pico .bashrc from the command line, edit the file, then type CTRL+o to save and CTRL+x to exit. oh ... if you want to add the JAVA_HOME to all users' paths, then edit your /etc/profile in the same way. |
you edit the file /etc/profile , append :/path/to/java/bin (eg :/usr/java/j2sdk1.4.2_03/bin) to every PATH= .
hope that help... ^_^ |
All times are GMT -5. The time now is 09:22 PM. |