Simple N00b Question
Ok I have the JDK installed in the /usr/java/jdk directory but I wanna make it so I can use the basic commands such as java, jar, and javac without having to type /usr/java/jdk/bin/java every time... is there any way to do this?
|
Several, some very detailed descriptions have been
given on the site. Have you searched yet? Cheers, Tink |
no clue what to search for hehe I dunno the term
|
Most definitely, YES. You can do it.
Open a term window and edit /etc/ld.so.conf. Add the paths to the executables to that file to make them available. Then either reboot, or try, from the bash prompt 'source /etc/ld.so.conf' to see if bash will reload ld.so.conf without rebooting. If bash reloads ld.so.conf, go to work, dude. If not, reboot, then go to work. Either way, you're in business. Enjoy! |
Thanks lemme try that
|
If it works OK for you, please post a reply. There may be other users who could use that advice.
So far as I am able to determine, it should work for Linux distros in general, but it may be restricted to PC based systems. I just don't know for certain! |
Didn't work :/ I also tried to ln <directory to java> /bin but that produced an error when i ran java because it said missing libraries... where do I go from here?
|
Quote:
First of all: ld.co.conf points at dynamically loaded libraries, not executables. Secondly, it's a text-file, not a shell-script, sourcing it won't work. Thirdly, modifying ld.so.conf doesn't warrant a reboot, all it takes it to run ldconfig manually as root. To help our OP with the problem of the search http://www.linuxquestions.org/questi...919#post273919 Cheers, Tink |
followed 2nd replys instructions on the link and they worked great thanks!
|
Thanks, Tinkster. Still testing my LInux wings. Occaisionally, I give good information; sometimes, not so good.
I have found that, when questions are not answered fully and completely, all it takes is an incorrect answer to bring out the more full, more complete answer, and the Linux user with the problem is on his/her way. And I learn from the better answer. Snowboard and I have both learned something tonight, thanks to you, Tinkster. Carry on. |
All times are GMT -5. The time now is 06:52 AM. |