LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-07-2005, 11:13 PM   #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-07-2005, 11:18 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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


Cheers,
Tink
 
Old 10-07-2005, 11:19 PM   #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-07-2005, 11:20 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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-07-2005 at 11:23 PM.
 
Old 10-07-2005, 11:22 PM   #5
snowboard4fod
LQ Newbie
 
Registered: Sep 2005
Distribution: Kubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks lemme try that
 
Old 10-07-2005, 11:27 PM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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-07-2005, 11:30 PM   #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-07-2005, 11:32 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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-07-2005, 11:46 PM   #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, 01:18 AM   #10
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:28 AM.

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
Open Source Consulting | Domain Registration