Search code examples
javaperformanceibm-midrangeiseries-navigator

As400 run a personal JRE


i have a java program that must run on an as400, running it from qshel run jre 1.6, but my dependencies require jre 1.8 is it possible to start that program with portable 1.8 jre? as is also done on Windows and Linux with the .bat and .sh files!

can you tell me the commands to customize the (java home) without moving the 1.6 installed?


Solution

  • Traditionally, the only JVMs available for the IBM i platform come from IBM. These are available through various options of the 5770-JV1 product. Versions up to 1.8 are available for IBM i 7.1 and up (perhaps earlier, but I haven't gone digging) You can find the available JVM options at https://www.ibm.com/support/pages/node/1117869

    To use a Java 1.8 64-bit VM from QSH, you could do eg.

    JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit
    export JAVA_HOME
    java -jar ...