LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Simple N00b Question (https://www.linuxquestions.org/questions/linux-newbie-8/simple-n00b-question-370828/)

snowboard4fod 10-07-2005 11:13 PM

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?

Tinkster 10-07-2005 11:18 PM

Several, some very detailed descriptions have been
given on the site. Have you searched yet?


Cheers,
Tink

snowboard4fod 10-07-2005 11:19 PM

no clue what to search for hehe I dunno the term

bigrigdriver 10-07-2005 11:20 PM

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!

snowboard4fod 10-07-2005 11:22 PM

Thanks lemme try that

bigrigdriver 10-07-2005 11:27 PM

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!

snowboard4fod 10-07-2005 11:30 PM

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?

Tinkster 10-07-2005 11:32 PM

Quote:

Originally posted by bigrigdriver
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!

Errrh.
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

snowboard4fod 10-07-2005 11:46 PM

followed 2nd replys instructions on the link and they worked great thanks!

bigrigdriver 10-08-2005 01:18 AM

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.