Java SDK help!
Hello,
Just installed Java SDK (on Fedora Core 3) using the Self-Extracting Binary into /usr/local/java.... Problem is when I type "java" or "javac" on the commandline i get: # java bash: java: command not found # javac bash: javac: command not found Not sure what to do..? If I need to add something to a file or something, please explain how (for I am a newbie on linux). Thank you. |
You need to add /usr/local/java/bin to the path.
You can do that either in ~/.bashrc or globally in /etc/profile |
or you could link the java binaries to ones in /usr/local/bin
|
Quote:
Quote:
Thx. |
In /etc/profile find the bit that says:
PATH=... and inside the inverted commas, add /usr/local/java/bin in exactly the same manner as all the other directories. Changes take effect either when you log in again, or by typing: source /etc/profile at a terminal window before trying something java related. |
Quote:
Code:
ln -s /javabinarypathandfilename /usr/local/bin/javabinaryfilename to do this open a text editor and type the full file path (ex. /usr/bin/javac) save the file as /usr/local/bin/progname and give it 755 permissions. Try the first way, and if it doesn't work right changing you path might be easier, but it's up to you whatever you decide to do.;) |
All times are GMT -5. The time now is 02:06 PM. |