Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-19-2004, 06:19 PM   #1
Registered: Mar 2004
Distribution: Fedora 10
Posts: 85

Rep: Reputation: 15
Question 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 gets frustrating
Old 04-19-2004, 06:28 PM   #2
Registered: Mar 2003
Location: Switzerland
Distribution: Fedora 3
Posts: 75

Rep: Reputation: 15
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ Interfacing with command line tools khermans Programming 2 04-14-2005 02:00 PM
group command line tools m2azer Linux - General 4 10-31-2004 09:37 PM
Cannot set the path for java jgoggel Programming 2 07-23-2004 06:31 AM
How to set the $PATH on command line? huangyanfeng Programming 3 11-07-2003 12:59 AM
Please help! I still can not set JAVA path preswang Linux - Software 9 11-01-2003 08:51 PM

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration