Java, Semeru Runtimes and Runtimes for Business

Java, Semeru Runtimes and Runtimes for Business

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Unable to use AIX Java 21 version, fails with error failed to open - reason: <      0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.

    Posted Tue January 07, 2025 09:12 AM

    Hi Team,

    We are trying to install DevOps Deploy AIX agent with AIX Java 21 version(FYI - Java 21 supports DevOps deploy agent version 8.1.0.0). But every time it fails with below error.

    failed to open </tmp/java21/jre/lib/default/libjvm.so> - reason: <      0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.
            0509-150   Dependent module libc++.a(shr_64.o) could not be loaded.
            0509-022 Cannot load module libc++.a(shr_64.o).
            0509-026 System error: A file or directory in the path name does not exist.
            0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.
            0509-150   Dependent module /tmp/java21/jre/lib/default/libjvm.so could not be loaded.>
    Failed to find VM - aborting

    >Even when we try to check java version it fails with same error.

    $ ./java -version
    failed to open </tmp/java21/jre/lib/default/libjvm.so> - reason: <      0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.
            0509-150   Dependent module libc++.a(shr_64.o) could not be loaded.
            0509-022 Cannot load module libc++.a(shr_64.o).
            0509-026 System error: A file or directory in the path name does not exist.
            0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.
            0509-150   Dependent module /tmp/java21/jre/lib/default/libjvm.so could not be loaded.>
    Failed to find VM - aborting

    Kindly check this issue and provide a solution.

    Thanks

    Rishitha



    ------------------------------
    Rishitha Duvvuru
    ------------------------------


  • 2.  RE: Unable to use AIX Java 21 version, fails with error failed to open - reason: <      0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.

    Posted Thu January 09, 2025 06:38 PM

    Hi Rishitha, 

    What's the version of this AIX JDK21? Since `-version` doesn't work, please share the content of `release` within the `/tmp/java21` folder.

    In addition, could you try RI - https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_ppc64_aix_hotspot_21.0.5_11.tar.gz?

    Regards,



    ------------------------------
    Jason Feng
    ------------------------------



  • 3.  RE: Unable to use AIX Java 21 version, fails with error failed to open - reason: <      0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.

    Posted Fri January 10, 2025 08:01 AM

    Also, openj9_support states that AIX OpenJ9 builds require the XL C++ Runtime of 16.1.0.7 or later.



    ------------------------------
    Jason Feng
    ------------------------------



  • 4.  RE: Unable to use AIX Java 21 version, fails with error failed to open - reason: <      0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.

    Posted Fri January 10, 2025 11:34 AM

    > In addition, could you try RI - https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.5%2B11/OpenJDK21U-jdk_ppc64_aix_hotspot_21.0.5_11.tar.gz?

    To clarify, the Reference Implementation (RI) AIX JDK21 link is an OpenJDK hotspot JVM built by a 3rd party Adoptium. It is a JVM without OpenJ9.

    If the same error occurs on the hotspot, the problem might exist upstream, or there is a machine setup issue.



    ------------------------------
    Jason Feng
    ------------------------------



  • 5.  RE: Unable to use AIX Java 21 version, fails with error failed to open - reason: <      0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.

    Posted Mon January 13, 2025 06:34 AM

    Hi Jason,

    Thanks for your response.
     
    We used the rpm file version 21.0.5.0 for AIX downloaded from https://developer.ibm.com/languages/java/semeru-runtimes/downloads/
     
    If possible can you share the right file that can be used from the site https://developer.ibm.com/languages/java/semeru-runtimes/downloads/ so that we can make use of it in our Production upgrade.
     
    Thanks
    Rishitha



    ------------------------------
    Rishitha Duvvuru
    ------------------------------



  • 6.  RE: Unable to use AIX Java 21 version, fails with error failed to open - reason: <      0509-022 Cannot load module /tmp/java21/jre/lib/default/libjvm.so.

    Posted Mon January 13, 2025 08:07 AM

    Hi Rishitha,

    > If possible can you share the right file that can be used from the site https://developer.ibm.com/languages/java/semeru-runtimes/downloads/ so that we can make use of it in our Production upgrade.

    Please follow the Semeru Runtimes support link -  https://www.ibm.com/support/pages/semeru-runtimes-support which also contains a link to the download site referred.

    In the section Supported platforms -> Version 21 -> AIX systems, there is an operating system minimum level requirement: 

    Important: IBM Semeru Runtimes, Version 17 on AIX require the 16.1.0.7 or later, XL C++ Runtime.

    Regards,



    ------------------------------
    Jason Feng
    ------------------------------