cannot find java even though it is there (ubuntu 12.04)

Posted by Jeff Storey on Server Fault See other posts from Server Fault or by Jeff Storey
Published on 2012-09-26T14:30:00Z Indexed on 2012/09/26 15:39 UTC
Read the original article Hit count: 183

Filed under:
|
|

I'm trying to just execute the java command and it's saying it cannot be found, even though it is there. Here's what my output looks like

root@oneiric:/usr/lib/jvm/default-java/bin# ls -al java
-rwxrwxrwx 1 uucp 143 5750 2012-09-20 11:14 java

root@oneiric:/usr/lib/jvm/default-java/bin# ./java
-su: ./java: No such file or directory

So the ls shows it's there, but it doesn't seem to execute.

Can someone explain why this is?

© Server Fault or respective owner

Related posts about linux

Related posts about java