IBM Z and LinuxONE IBM Z

  • 1.  Install Java on IBM LinuxONE Community Cloud

    Posted Tue October 05, 2021 02:08 PM

    If you need to install Java on your instance of the IBM LinuxONE Community Cloud, then you could use the AdoptOpenJDK offering - see https://adoptopenjdk.net/

     

    AdoptOpenJDK is supported by IBM - see https://developer.ibm.com/blogs/adoptopenjdk-an-open-java-distribution-and-community-you-can-count-on/

     

    Details of how to install are available on https://levelup.gitconnected.com/getting-java-and-jenkins-working-on-linux-on-mainframe-d2a8736f2469

     

    Thanks to Petr Plavjanik for providing the detailed install instructions.

     

    Aidan Hogarty

    Ireland

     

    Sent from Mail for Windows

     



  • 2.  RE: Install Java on IBM LinuxONE Community Cloud

    IBM Champion
    Posted Thu October 07, 2021 07:57 AM
    Hey thanks, Aidan Hogarty!  We are looking to use Java on our IBM Z, but we don't use LinuxOne Cloud...any suggestions on how to call Java from IBM Z on a cobol application? 

    Kari​

    ------------------------------
    Kari Nagle
    ------------------------------



  • 3.  RE: Install Java on IBM LinuxONE Community Cloud

    Posted Thu October 07, 2021 08:13 AM
    Hi

    • The MVS way would be to use System.in and System.out in Java and put it in a JCL deck together with the COBOL program.
    • The Java way would be to write a DLL in COBOL and link it using JNI together with some C glue-code.
    • The scaling way would be to use i.e. IBM MQ to connect the two programs.

    Yours,

    VB.



    ------------------------------
    Volker Birk
    p≡p project
    https://pEp.software
    ------------------------------



  • 4.  RE: Install Java on IBM LinuxONE Community Cloud

    Posted Thu October 07, 2021 11:05 AM
    Hi Kari,

    I take it that you want to pass output from the Cobol programme to Java on z/os.

    You could create a BPXBATCH job 

    I did something similar a number of years ago to validate an MVS SEPA XML dataset. 

    In the Unix Subsytem (option 3.14 in ISPF) I created a Java routine to validate the XML using an XSD schema. The Java was invoked by a Unix Shell called via a BPXBATCH job.

    The only issue I encountered was to do with characterset in the Unix Shell and the Java, which I resolved with the Unix "lang" setting.






  • 5.  RE: Install Java on IBM LinuxONE Community Cloud

    Posted Fri October 08, 2021 10:55 AM
    @Kari Nagle -- see my reply to your other thread asking about calling Java from COBOL applications.​

    ------------------------------
    Leigh Compton
    ------------------------------