Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7076745

JRE doesn't work with Linux capabilities

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux_ubuntu

      Description

      FULL PRODUCT VERSION :
      java version "1.7.0"
      Java(TM) SE Runtime Environment (build 1.7.0-b147)
      Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Ubuntu 10.04 LTS
      Linux gvk-stend 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21 UTC 2011 i686 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      After setting capabilities with this command:
      sudo setcap cap_net_bind_service=+ep /usr/lib/jvm/jdk1.7.0/bin/java

      It is impossible to execute binary /usr/lib/jvm/jdk1.7.0/bin/java:
      java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

      I even tried to add the absolute path to "libjli.so" and run "sudo ldconfig" but it doesn't help:

      $ cat /etc/ld.so.conf.d/libjli.conf
      /usr/lib/jvm/jdk1.7.0/jre/lib/i386/jli/libjli.so



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Unpack the content of "jdk-7-linux-i586.tar.gz" to /usr/lib/jvm
      2. sudo setcap cap_net_bind_service=+ep /usr/lib/jvm/jdk1.7.0/bin/java
      3. /usr/lib/jvm/jdk1.7.0/bin/java -version

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      $ /usr/lib/jvm/jdk1.7.0/bin/java -version
      java version "1.7.0"
      Java(TM) SE Runtime Environment (build 1.7.0-b147)
      Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode)
      ACTUAL -
      $ /usr/lib/jvm/jdk1.7.0/bin/java -version
      /usr/lib/jvm/jdk1.7.0/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      /usr/lib/jvm/jdk1.7.0/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ksrini Kumar Srinivasan
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: