LinuxQuestions.org
Visit Jeremy's Blog.
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 10-08-2005, 12:13 AM   #1
snowboard4fod
LQ Newbie
 
Registered: Sep 2005
Distribution: Kubuntu
Posts: 15

Rep: Reputation: 0
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?
 
Old 10-08-2005, 12:18 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

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


Cheers,
Tink
 
Old 10-08-2005, 12:19 AM   #3
snowboard4fod
LQ Newbie
 
Registered: Sep 2005
Distribution: Kubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
no clue what to search for hehe I dunno the term
 
Old 10-08-2005, 12:20 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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!

Last edited by bigrigdriver; 10-08-2005 at 12:23 AM.
 
Old 10-08-2005, 12:22 AM   #5
snowboard4fod
LQ Newbie
 
Registered: Sep 2005
Distribution: Kubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks lemme try that
 
Old 10-08-2005, 12:27 AM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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!
 
Old 10-08-2005, 12:30 AM   #7
snowboard4fod
LQ Newbie
 
Registered: Sep 2005
Distribution: Kubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 10-08-2005, 12:32 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 10-08-2005, 12:46 AM   #9
snowboard4fod
LQ Newbie
 
Registered: Sep 2005
Distribution: Kubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
followed 2nd replys instructions on the link and they worked great thanks!
 
Old 10-08-2005, 02:18 AM   #10
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
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.
 
  


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
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
N00b: Simple Question about Bash Func and Vars: TylerD75 Programming 6 04-03-2005 07:03 AM
A Simple n00b question - assigning your system a name TuxFreak Fedora 9 12-02-2004 05:40 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
simple samba n00b question gn000we Linux - Networking 1 03-19-2003 02:14 PM


All times are GMT -5. The time now is 09:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration