LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Setting Java Path (https://www.linuxquestions.org/questions/suse-opensuse-60/setting-java-path-321727/)

gtkmike 05-09-2005 02:45 PM

Setting Java Path
 
Hello Forum,
I have just installed SUSE 9.2.
I have also installed JAVA sdk
Where do I edit the PATH variable in SUSE?
In Fedora I can us .bash_profile to edit the PATH variable, this does not exist in SUSE. Where/what file do I find the PATH variable in so I can add my JAVA install to it?

Thank you in advance,
Mike

rjlee 05-09-2005 04:05 PM

Just create a ~/.bash-profile file and add the line
Code:

export PATH=$PATH:/path
Make the .bash-profile executable with:
Code:

chmod a+rx ~/.bash-profile
But you probably don't need to add the path to the PATH variable; try typing in the full pathname of the file at the BASH prompt (or click on it through Gnome or KDE).


All times are GMT -5. The time now is 02:33 PM.