I have a Debian Wheezy Linux, which gives me this most puzzling output:
root@server:~# ls -al /opt/jdk1.7.0_51/jre/bin/java
-rwxrwxrwx 1 root root 7718 Dec 19 03:13 /opt/jdk1.7.0_51/jre/bin/java
root@server:~# /opt/jdk1.7.0_51/jre/bin/java
-bash: /opt/jdk1.7.0_51/jre/bin/java: No such file or directory
So it can see the java executable (verified via cat that it is an executable indeed) but can't see it the same time. Any pointers?