Coder Social home page Coder Social logo

java failing w/weird not msg about ops HOT 3 CLOSED

nanovms avatar nanovms commented on May 17, 2024
java failing w/weird not msg

from ops.

Comments (3)

eyberg avatar eyberg commented on May 17, 2024

it's cause of libjil ->

        linux-vdso.so.1 =>  (0x00007ffe3a3b8000)
        libjli.so => not found
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fccf2fb2000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fccf337c000)
eyberg@dungeon:~/jtest$ nvm run -p 8081 -c config.json /home/eyberg/jtest/java
yo3
(children:(not:(contents:(host:not))lib:(children:(x86_64-linux-gnu:(children:(libc.so.6:(contents:(host:/lib/x86_64-linux-gnu/libc.so.6))))))lib64:(children:(ld-linux-x86-64.so.2:(contents:(host:/lib64/l
d-linux-x86-64.so.2))))HelloWorld.class:(contents:(host:HelloWorld.class))home:(children:(eyberg:(children:(jtest:(children:(java:(contents:(host:/home/eyberg/jtest/java))))))))kernel:(contents:(host:.sta
ging/stage3.img)))
program:/home/eyberg/jtest/java
arguments:[java HelloWorld]
environment:())
exit status 255
nah here
2018/11/24 09:29:09 couldn't open file not

so it appears that it's just a packaging/symlink issue -

I found the jre pkg here ->

eyberg@dungeon:~/jtest$ locate libjli.so
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/jli/libjli.so
eyberg@dungeon:~/jtest$ ldd java
        linux-vdso.so.1 =>  (0x00007ffd727f5000)
        libjli.so => not found
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f086d55d000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f086d927000)
eyberg@dungeon:~/jtest$ cp /usr/lib/jvm/java-8-openjdk-amd64/bin/java .
eyberg@dungeon:~/jtest$ ldd /usr/lib/jvm/java-8-openjdk-amd64/bin/java
        linux-vdso.so.1 =>  (0x00007ffc4a99c000)
        libjli.so => /usr/lib/jvm/java-8-openjdk-amd64/bin/../lib/amd64/jli/libjli.so (0x00007f56c66c3000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f56c62f9000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f56c60df000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f56c5edb000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f56c5cbe000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f56c68d2000)

of course that path goes away once you copy it over - maybe we should have a tool to copy libs and force the path before creating the manifest for cases like this?

from ops.

eyberg avatar eyberg commented on May 17, 2024

we should just try and make a manual pkg of this for now and see if that gets us to hello world an then we can come back later and make it a bit more proper

from ops.

mkhon avatar mkhon commented on May 17, 2024

bin/java has DT_RPATH/DT_RUNPATH set to "$ORIGIN/../lib" and libjli.so resides in "../lib" (relative to "java" executable).

With #714 and #715 libjli.so can be found successfully. I don't think we need a separate issue for this loading issue (all can be tracked in a parent issue #449).

from ops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.