>>>>> Michael Emmel writes:

> Juergen Kreileder wrote:
>> >>>>> P Q writes:
>> 
>> > hi I just downloaded the jdk1.1.6 and installed in my linux
>> system.
>> 
>> > when I try to run "javac" command, it gives me the following
>> error > message:
>> /usr/local/jdk1.1.6/bin/../bin/i586/green_threads/javac: >
>> /usr/local/jdk1.1.6/bin /../bin/i586/green_threads/java: No such >
>> file or directory
>> 
>> > I think it is related to the .java_wrapper in the bin directory..
>> 
>> Sounds more like a libc5/glibc issue.
>> 
>> If you have /lib/libc-2.0.7.so you'll need the glibc version of the
>> JDK, if you *only* have /lib/libc.so.5 you'll need the libc5
>> version.

> Nope its ap path problem probably running symobilc links that dont
[...]

I don't think so, I've seen many bug reports like this one.

/usr/local/jdk1.1.6/bin/../bin/i586/green_threads/javac:
/usr/local/jdk1.1.6/bin /../bin/i586/green_threads/java: No such file or directory

Note the colon after java ('...threads/java:'). That means that
java (the real binary, not the .java_wrapper) indeed has been found.
The colon means that the error message on the right side of the 
colon ('No such ...') is thrown by the application on the left
side of the colon (java).

The error message is incomplete, i.e. the error message doesn't mention
what file or directory has not been found. This only happens if the 
missing file is libc.


Try the following command to see if you have the right jdk version:
$ LD_LIBRARY_PATH=/usr/local/jdk1.1.6/lib/i586/green_threads ldd 
/usr/local/jdk1.1.6/bin/i586/green_threads/java

On my system it looks like this:
122> LD_LIBRARY_PATH=~/local/jdk-116v4b/lib/i686/green_threads ldd 
~/local/jdk-116v4b/bin/i686/green_threads/java
        libjava.so => 
/home/kreilede/local/jdk-116v4b/lib/i686/green_threads/libjava.so (0x4000c000)
        libm.so.6 => /lib/libm.so.6 (0x40082000)
        libdl.so.2 => /lib/libdl.so.2 (0x4009b000)
        libawt.so => /home/kreilede/local/jdk-116v4b/lib/i686/green_threads/libawt.so 
(0x400a0000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x400ea000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x400f8000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40140000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40155000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4015e000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4016a000)
        libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x4020e000)
        libc.so.6 => /lib/libc.so.6 (0x40215000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


        Jürgen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802

Reply via email to