Adding Commands
How do you make it so you don't have to type in the complete command path? I just installed java and don't really want to write:
Code:
/usr/java/jdk1.5.0_08/bin/javac |
Example of adding a path to your user account. Add a line like this to ~/.bashrc in your home directory.
export PATH=$PATH:/usr/java/jdk1.5.0_08/bin/ Brian1 |
Or you could add a symlink to your /usr/bin.
Code:
ln -s /usr/java/jdk1.5.0_08/bin/javac /usr/bin/javac |
In the case of java - definitely add it to your PATH as Brian1 suggested. The reason for this is that there are other java programs such as java, javac, javadoc ...
Also, I think Fedora comes with GNU Java - which is all in /usr/bin. If you add the java directory to your path thus: Code:
export PATH=/usr/java/jdk1.5.0_08/bin/:$PATH I hope this helps --Ian |
All times are GMT -5. The time now is 12:04 AM. |