Results 1 to 10 of 13
I'm trying to get my Java installation to find alle the java commands without me
cd into the java dirctory. Is there a way.. I think there is a file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-17-2005 #1
Path variable file
I'm trying to get my Java installation to find alle the java commands without me
cd into the java dirctory. Is there a way.. I think there is a file that control this? Oh! If there is I need to know where it is.. exactly.. the file search just keep crashing..
- 04-17-2005 #2Linux Newbie
- Join Date
- Apr 2005
- Location
- South America
- Posts
- 152
Hi, all you have to do is this:
PATH=$PATH:[java installation path]
in your .bashrc or .bash_profile
cheers
- 04-19-2005 #3
Thanks
you probably have an idee on where that file is located (mandrake)?
- 04-19-2005 #4Linux Newbie
- Join Date
- Apr 2005
- Location
- South America
- Posts
- 152
mmm dunno for sure, maybe try
/usr/java/jdk1.5.0_01/bin/
It really depends on where you have it installed, for example, some people install it at /opt rather than /usr
- 04-19-2005 #5Just Joined!
- Join Date
- Apr 2005
- Location
- Norway
- Posts
- 18
hey, that's a rather special nick you got there, darklordsatan.
- 04-19-2005 #6Linux Newbie
- Join Date
- Apr 2005
- Location
- South America
- Posts
- 152
hehe, yes I do sir
Originally Posted by hansjoakim
- 04-20-2005 #7
Originally Posted by feddersen should find the javac executable for you, and will show u where it's located.Code:find / -iname 'javac' | grep bin
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 04-22-2005 #8Linux Newbie
- Join Date
- Apr 2005
- Location
- South America
- Posts
- 152
This is an even easier (and faster) way:
$ whereis -b javac
- 04-23-2005 #9So there is.... but i assume that requires u to have done a updatedb first. the same as slocate.
Originally Posted by darklordsatan
And not just an updatedb, but do that AFTER installing java."I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 04-23-2005 #10Linux Newbie
- Join Date
- Apr 2005
- Location
- South America
- Posts
- 152
Dunno for sure (yeah, my root skills suck). AFAIK, updatedb is used with locate, but whereis just searches into common paths or something like that
Originally Posted by sdousley
Obviously, although faster, you cant deny the power of find, might be slower, but more robust


Reply With Quote
