FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 10-15-2012, 03:38 PM
Jon Dowland
 
Default No such file or directory ...

The error "no such file or directory" could be a red-herring in some cases.
What is the filesystem and mount options for the drive upon which you've put
Java? (output of "mount", please)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20121015153847.GA15436@debian
 
Old 10-15-2012, 03:39 PM
"Karl E. Jorgensen"
 
Default No such file or directory ...

Hi

On Mon, Oct 15, 2012 at 04:24:25PM +0100, Albretch Mueller wrote:
> I am having problems which I think may relate to an actually dying
> disk, but I am not sure. Sometimes I have thought it is because of a
> dying disk and then we have realized it wasn't.
> ~
> I basically installed java and recursively copied the files to
> another directory. 'which' and 'ls' are telling me the file is where I
> put and declared it in the PATH, but the JVM doesn't find it
> ~
> What do you think is wrong with the picture?
> ~
> thanks
> lbrtchx
> ~
> $ echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>
> $ export JAVA_HOME="/media/sdd1/jdk/x64/jdk1.7.0_07"
>
> $ export PATH="$JAVA_HOME"/bin:$PATH
>
> $ echo $PATH
> /media/sdd1/jdk/x64/jdk1.7.0_07/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>
> $ which java
> /media/sdd1/jdk/x64/jdk1.7.0_07/bin/java
>
> $ java -version
> bash: /media/sdd1/jdk/x64/jdk1.7.0_07/bin/java: No such file or directory

What does :

$ file ./java

report ?

If ./java is a script and contains a she-bang which references a
non-existent shell, this would be expected. For example if it
contained:
#!/bin/bash
and you /bin/bash did not exist....


--
Karl E. Jorgensen


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20121015153958.GA12644@hawking
 
Old 10-15-2012, 04:02 PM
Raphael Cauderlier
 
Default No such file or directory ...

Albretch Mueller <lbrtchx@gmail.com> writes:

> I am having problems which I think may relate to an actually dying
> disk, but I am not sure. Sometimes I have thought it is because of a
> dying disk and then we have realized it wasn't.
> ~
> I basically installed java and recursively copied the files to
> another directory. 'which' and 'ls' are telling me the file is where I
> put and declared it in the PATH, but the JVM doesn't find it
> ~
> What do you think is wrong with the picture?
> ~
> thanks
> lbrtchx
> ~
> $ echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>
> $ export JAVA_HOME="/media/sdd1/jdk/x64/jdk1.7.0_07"
>
> $ export PATH="$JAVA_HOME"/bin:$PATH
>
> $ echo $PATH
> /media/sdd1/jdk/x64/jdk1.7.0_07/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>
> $ which java
> /media/sdd1/jdk/x64/jdk1.7.0_07/bin/java
>
> $ java -version
> bash: /media/sdd1/jdk/x64/jdk1.7.0_07/bin/java: No such file or directory
>

I just had a similar problem and solved it using the solution from
https://workbooks.wordpress.com/2009/08/05/java-no-such-file-or-directory-on-linux/
(installing the package ia32-libs)

I hope this helps.

--
RaphaŽl Cauderlier


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: vt2lif7vi3b.fsf@zamok.crans.org">http://lists.debian.org/vt2lif7vi3b.fsf@zamok.crans.org
 
Old 10-15-2012, 04:30 PM
Sven Joachim
 
Default No such file or directory ...

On 2012-10-15 17:38 +0200, Jon Dowland wrote:

> The error "no such file or directory" could be a red-herring in some cases.

According to the execve(2) manpage, it means

The file filename or a script or ELF interpreter does not exist,
or a shared library needed for file or interpreter cannot be
found.

Cheers,
Sven


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87fw5fofy6.fsf@turtle.gmx.de">http://lists.debian.org/87fw5fofy6.fsf@turtle.gmx.de
 
Old 10-15-2012, 05:58 PM
Albretch Mueller
 
Default No such file or directory ...

Well, in case someone runs against similar weird problems.
~
As RaphaŽl hinted, their root seems to relate to my starting
Linux/Debian/knoppix as:
~
knoppix64 ...
~
which I think it is what I should do right?
~
$ uname -a
Linux Microknoppix 3.3.7 #38 SMP PREEMPT Tue May 22 06:21:01 CEST 2012
i686 GNU/Linux

$ uname -m
i686

$ cat /proc/cpuinfo | grep 64
model name : AMD Athlon(tm) 64 Processor 3500+
clflush size : 64
cache_alignment : 64
~
for some reason that is still not totally clear to me, starting using
a 32-bit baseline:
~
knoppix ...
~
seems to be fine and of course I also used the 32-bit version of the JVM
~
thanks
lbrtchx
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~
$ which bash
/bin/bash

$ bash --version
GNU bash, version 4.2.20(1)-release (i486-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

$ export JAVA_HOME="/media/sdb1/inst/sw/jdk/x86/1.7.0_07"

$ export PATH="$JAVA_HOME"/bin:$PATH

$ echo $PATH
/media/sdb1/inst/sw/jdk/x86/1.7.0_07/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

$ which java
/media/sdb1/inst/sw/jdk/x86/1.7.0_07/bin/java

$ java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode)

$ which bash
/bin/bash
~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~






On 10/15/12, Raphael Cauderlier <cauderlier@crans.org> wrote:
> Albretch Mueller <lbrtchx@gmail.com> writes:
>
>> I am having problems which I think may relate to an actually dying
>> disk, but I am not sure. Sometimes I have thought it is because of a
>> dying disk and then we have realized it wasn't.
>> ~
>> I basically installed java and recursively copied the files to
>> another directory. 'which' and 'ls' are telling me the file is where I
>> put and declared it in the PATH, but the JVM doesn't find it
>> ~
>> What do you think is wrong with the picture?
>> ~
>> thanks
>> lbrtchx
>> ~
>> $ echo $PATH
>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>>
>> $ export JAVA_HOME="/media/sdd1/jdk/x64/jdk1.7.0_07"
>>
>> $ export PATH="$JAVA_HOME"/bin:$PATH
>>
>> $ echo $PATH
>> /media/sdd1/jdk/x64/jdk1.7.0_07/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>>
>> $ which java
>> /media/sdd1/jdk/x64/jdk1.7.0_07/bin/java
>>
>> $ java -version
>> bash: /media/sdd1/jdk/x64/jdk1.7.0_07/bin/java: No such file or directory
>>
>
> I just had a similar problem and solved it using the solution from
> https://workbooks.wordpress.com/2009/08/05/java-no-such-file-or-directory-on-linux/
> (installing the package ia32-libs)
>
> I hope this helps.
>
> --
> RaphaŽl Cauderlier
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> Archive: http://lists.debian.org/vt2lif7vi3b.fsf@zamok.crans.org
>
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CAFakBwg0x2zvY8wp4V2QmD8m6nShhf92buqPPqo-A4m=H=dyxg@mail.gmail.com
 

Thread Tools




All times are GMT. The time now is 04:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org