[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: blind spot for java



On Fri, Aug 26, 2005 at 02:03:42PM +0100, Graham Smith wrote:
> On Friday 26 August 2005 13:30, Kai Grossjohann wrote:
> > Graham Smith <graham@crazysquirrel.com> writes:
> > > bash: /usr/local/jdk1.5.0_04/bin/java: No such file or directory
> >
> > This message makes you think that /usr/local/jdk1.5.0_04/bin/java does
> > not exist.  But that is sometimes wrong.  Look if this file is a shell
> > script.  If so, look at its shebang line and fix it if necessary.
> >
> > (If you have a script /bin/foo that starts with "#!/bin/bar", but you
> > don't have /bin/bar, then you'll get a message "/bin/foo: No such file
> > or directory", but the truth is that it is the file /bin/bar that's
> > missing...)
> >
> > Kai
> 
> Cheers,
> 
> Unfortunately I had thought of that and the java file in question is a binary 
> not a shell script.
> 

You haven't got an invisible character (space, for example) at the 
end of the name by chance, have you? I.e "java ".


-- 
David Jardine

"Running Debian GNU/Linux and
loving every minute of it."  -L. von Sacher-M.(1835-1895)



Reply to: