LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do I set a path for my java command line tools (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-set-a-path-for-my-java-command-line-tools-172235/)

darkone66669 04-19-2004 06:19 PM

how do I set a path for my java command line tools
 
I have the java sdk installed on my system but I don't know how to set a path for the command line tools. I want to be able to run the java, javac and appletviewer executables without having to type in the location every time I do it....it gets frustrating

mandeltuete 04-19-2004 06:28 PM

If you're using Bash:
# export PATH=$PATH:/my/path/to/my/javasdk/bin

If you don't want to type that every time you log in, open the file ~/.bash_profile in your text editor and add ":/my/path/to/my/javasdk/bin" to the export PATH command, which you find in that file.

HTH


All times are GMT -5. The time now is 09:34 AM.