LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 04-19-2004, 07:19 PM   #1
darkone66669
Member
 
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 it....it gets frustrating
 
Old 04-19-2004, 07:28 PM   #2
mandeltuete
Member
 
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.

HTH
 
  


Reply


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 03:00 PM
group command line tools m2azer Linux - General 4 10-31-2004 10:37 PM
Cannot set the path for java jgoggel Programming 2 07-23-2004 07:31 AM
How to set the $PATH on command line? huangyanfeng Programming 3 11-07-2003 01:59 AM
Please help! I still can not set JAVA path preswang Linux - Software 9 11-01-2003 09:51 PM


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

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