Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Path problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Beattie
Apprentice
Apprentice


Joined: 24 Jun 2002
Posts: 155

PostPosted: Fri Sep 12, 2003 3:06 am    Post subject: Path problems Reply with quote

$ which java
which: no java in (/usr/kde/3.1/bin:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/sun-jdk-1.4.1.01/bin:/opt/sun-jdk-1.4.1.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/bin)

the java executable is in sun-jdk-1.4.1.01/bin which is in the path. If I cd there and run it, it works fine.

What is going on here?
Back to top
View user's profile Send private message
meowsqueak
Veteran
Veteran


Joined: 26 Aug 2003
Posts: 1549
Location: New Zealand

PostPosted: Fri Sep 12, 2003 3:35 am    Post subject: Reply with quote

Assuming you're using bash, try doing a 'hash -r' and then 'which java' again?
Back to top
View user's profile Send private message
Beattie
Apprentice
Apprentice


Joined: 24 Jun 2002
Posts: 155

PostPosted: Fri Sep 12, 2003 3:56 am    Post subject: Reply with quote

Nope. Doesnt work.
Back to top
View user's profile Send private message
thunder
Retired Dev
Retired Dev


Joined: 01 Sep 2003
Posts: 164
Location: Wroclaw, PL

PostPosted: Fri Sep 12, 2003 6:01 am    Post subject: Reply with quote

type:
Code:
find / -type f -name java
and check if it is there.
_________________
Damian Florczyk
Gentoo/NetBSD development lead
Back to top
View user's profile Send private message
Beattie
Apprentice
Apprentice


Joined: 24 Jun 2002
Posts: 155

PostPosted: Sat Sep 13, 2003 7:09 am    Post subject: Reply with quote

Yea, it lists it with a whole bunch of other things as "permission denied"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum