AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  Installing Java 22 version in AIX

    Posted Thu June 13, 2024 11:15 AM

    Hi All,

    I have been trying to install Java 22 version in AIX 7.2. I have downloaded the packaged and untar it.

    When I run the below command to the version, it is throwing error like some lib could not load. But the lib file is already present in the server.

    Kindly help on resolving the issue and please let me know if any info required.

    # oslevel -s
    7200-02-02-1832

    # /usr/java22/jre/bin/java -version
    failed to open </usr/java22/jre/lib/default/libjvm.so> - reason: <      0509-022 Cannot load module /usr/java22/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 /usr/java22/jre/lib/default/libjvm.so.
            0509-150   Dependent module /usr/java22/jre/lib/default/libjvm.so could not be loaded.>
    Failed to find VM - aborting

    # ls -ld /usr/java22/jre/lib/default/libjvm.so
    -rw-r--r--    1 root     staff        810026 May 16 12:26 /usr/java22/jre/lib/default/libjvm.so

    Current Java version installed:

    # which java
    /usr/java7_64/jre/bin/java

    # /usr/java7_64/jre/bin/java -version
    java version "1.7.0"
    Java(TM) SE Runtime Environment (build pap6470sr10fp25-20180430_01(SR10 FP25))
    IBM J9 VM (build 2.6, JRE 1.7.0 AIX ppc64-64 Compressed References 20180420_384915 (JIT enabled, AOT enabled)
    J9VM - R26_Java726_SR10_20180420_1715_B384915
    JIT  - r11_20180420_384915
    GC   - R26_Java726_SR10_20180420_1715_B384915_CMPRSS
    J9CL - 20010803_384915)
    JCL - 20180427_01 based on Oracle jdk7u181-b09

    # lslpp -l |grep -i java
      Java7_64.jre             7.0.0.625  COMMITTED  Java SDK 64-bit Java Runtime
      Java7_64.sdk             7.0.0.625  COMMITTED  Java SDK 64-bit Development
      idebug.rte.olt.Java
      idsldap.cltjava64.rte     6.4.0.11  COMMITTED  Directory Server - Java Client
                                 3.2.1.0  COMMITTED  RSCT GUI JAVA Msgs - U.S.
                                 3.2.1.0  COMMITTED  RSCT RMC JAVA Msgs - U.S.
      Java7_64.jre             7.0.0.625  COMMITTED  Java SDK 64-bit Java Runtime

    Thank You

    Durga G



    ------------------------------
    Gorusu Durga Reddy
    ------------------------------


  • 2.  RE: Installing Java 22 version in AIX

    Posted Thu June 13, 2024 12:15 PM

    You need to have libc++.rte lpp fileset.

    # lslpp -w /usr/lib/libc++.a
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/lib/libc++.a                           libc++.rte            Symlink



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: Installing Java 22 version in AIX

    Posted Tue June 18, 2024 08:16 AM

    Hi Ayappan,

    Thank You for the Assistance. I have installed the libc++.rte lpp fileset.

    Regards,

    Durga G



    ------------------------------
    Gorusu Durga Reddy
    ------------------------------



  • 4.  RE: Installing Java 22 version in AIX

    Posted Mon June 24, 2024 11:40 AM

    Hi Ayappan,

    I have configured java22 in few servers and it was successful and followed the same process in the one other server as well.

    Now I got some new error.

    I have been trying to understand what was missing but could not understand.

    Could you please help me on it.

    #  /usr/java22/jre/bin/java -version
    exec(): 0509-036 Cannot load program java because of the following errors:
            0509-130 Symbol resolution failed for java because:
            0509-136   Symbol ___strcmp64 (number 9) is not exported from
                       dependent module /usr/lib/libc.a[shr_64.o].
            0509-136   Symbol ___strcpy64 (number 11) is not exported from
                       dependent module /usr/lib/libc.a[shr_64.o].
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.
     #

    Thank You

    Durga G



    ------------------------------
    Gorusu Durga Reddy
    ------------------------------