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
Expand all | Collapse all

java 17on aix 7.1

  • 1.  java 17on aix 7.1

    Posted Tue January 16, 2024 11:48 AM

    I am trying to run java 17 on aix 7.1 i have installed all the prerequisites. but somehow libjvm.so cannot find the file libc++.a 

    ldd /app/java17/jdk-17.0.9+9/lib/default/libjvm.so
    /app/java17/jdk-17.0.9+9/lib/default/libjvm.so needs:
             /usr/lib/libpthread.a(shr_xpg5_64.o)
             /usr/lib/libdl.a(shr_64.o)
    Cannot find libc++.a(shr_64.o)
             /usr/lib/libC.a(shrcore_64.o)
             /usr/lib/libc.a(shr_64.o)
             /unix
             /usr/lib/libC.a(ansicore_64.o)
             /usr/lib/libcrypt.a(shr_64.o)

    however i have installed libc++.rte to the version bigger than 16.1.0.7: 

    lslpp -l|grep libc++
      libc++.rte               16.1.0.10  COMMITTED  IBM XL C++ Runtime for AIX 7.1

    and the file libc++.a exists: 

    ls -ltr /usr/lib/libc++.a
    lrwxrwxrwx    1 bin      bin              25 Jan 16 16:45 /usr/lib/libc++.a -> /usr/lpp/xlC/lib/libc++.a

    lslpp -w "*libc++.a*"
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/lib/libc++.a                           libc++.rte            Symlink
      /usr/lpp/xlC/lib/aix61/libc++.a             libc++.rte            File
    

    Do I need to export a library path? such as libpath or install additional libraries. 

    if the version of AIX was not supported it would tell me instead of telling me a file is missing? right? 

    thanks in advance. 



    ------------------------------
    Mario Garcia
    ------------------------------


  • 2.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 06:17 AM

    You showed that /usr/lib/libc++.a is a soft link. Is the target file /usr/lpp/xlC/lib/libc++.a present and accessible on the system?



    ------------------------------
    Will SMITH
    ------------------------------



  • 3.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 08:12 AM

    indeed the file /usr/lpp/xlC/lib/libc++.a does not exist! 

    what do i need to install it? why isn't it installed by the libc++.rte package? 

    thank you 



    ------------------------------
    Mario Garcia
    ------------------------------



  • 4.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 08:47 AM
    Edited by Will SMITH Mon January 22, 2024 08:48 AM

    hi Mario, on my local system, libc++.rte installed /usr/lpp/xlC/lib/libc++.a :

    $ lslpp -f libc++.rte

      Fileset               File

      ----------------------------------------------------------------------------

    Path: /usr/lib/objrepos

      libc++.rte 17.1.1.0   /usr/lpp/xlC/lib/libc++.a

                            /usr/lpp/xlC/lib/libatomic.a

                            /usr/lpp/xlC

                            /usr/lib/libatomic.a -> /usr/lpp/xlC/lib/libatomic.a

                            /usr/lib/libc++.a -> /usr/lpp/xlC/lib/libc++.a

                            /usr/lpp/xlC/lib

    What does the `lslpp -f libc++.rte` command show for your system?



    ------------------------------
    Will SMITH
    ------------------------------



  • 5.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 08:53 AM

    hello Will, 

    this is the output of the command: 

    :lslpp -f libc++.rte
      Fileset               File
      ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
      libc++.rte 16.1.0.0   /usr/lpp/xlC
                            /usr/lib/libc++.a -> /usr/lpp/xlC/lib/libc++.a
                            /usr/lpp/xlC/lib
                            /usr/lpp/xlC/lib/aix61/libatomic.a
                            /usr/lpp/xlC/lib/aix61
                            /usr/lib/libatomic.a -> /usr/lpp/xlC/lib/libatomic.a
                            /usr/lpp/xlC/lib/aix61/libc++.a

    should i install the packages found here: Redistributable libraries - IBM Documentation

    namely xlC.aix61.rte 

    I don't know if its installed. 



    ------------------------------
    Mario Garcia
    ------------------------------



  • 6.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 09:08 AM

    hi Mario, I'm not an AIX install expert and I don't understand why your `lslpp -f libc++.rte` output shows the older version 16.1.0.0. Also it does not show that this fileset installed /usr/lpp/xlC/lib/libc++.a for your system. At this point I would suggest opening a support case with AIX support to verify the c++ library install on the system.



    ------------------------------
    Will SMITH
    ------------------------------



  • 7.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 09:37 AM

    Will, 

    are you also running aix 7.1? perhaps it is the version that is being installed on this particular version of the OS i made the test on a aix 7.2 and i have no issues with java. 

    but i need to make it run for a legacy app on a aix 7.1.

    they are not willing to upgrade the OS/app atm. and if they do they'd prefer to move to linux. 



    ------------------------------
    Mario Garcia
    ------------------------------



  • 8.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 09:38 AM

    Hi Mario, another thought - the Supported Platforms page says that only AIX 7.2 and 7.3 are currently supported for Semeru Java 17:

    https://www.ibm.com/support/pages/semeru-runtimes-support#supportedplatforms



    ------------------------------
    Will SMITH
    ------------------------------



  • 9.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 09:47 AM

    For AIX 7.1 it seems that you would be limited to Java 8:

    https://www.ibm.com/docs/en/sdk-java-technology/8?topic=installing-supported-environments



    ------------------------------
    Will SMITH
    ------------------------------



  • 10.  RE: java 17on aix 7.1

    Posted Mon January 22, 2024 09:56 AM

    yes i see that. 

    afaik supported does not mean it doesn't run. it means justs there is no support from IBM.

    for now, the problem is not Java is that a c++ libraries are mysteriously missing. I think libc++.rte supports 7.1 and all the libraries should be installed. 

    I will try to open a support case. hopefully i get some insights, 

    thank you for your assistance. 



    ------------------------------
    Mario Garcia
    ------------------------------