RPGIV @ Work

A unique site for RPG and System i Lovers

Welcome!

Hi, this site will provide all what you need in System i and RPG developments.

My Name is Chamara Withanachchi, System i Expert and RPG Developer. And in the field for last 11 years.

I hope you will find lot of valuable information from this site

Controlling how the Java Virtual Machine is set up Print E-mail
User Rating: / 0
PoorBest 
Written by Chamara Withanachchi   

When RPG starts the Java Virtual Machine (JVM), there are several options that control how the JVM is started. See the Java System Properties section in the iSeries Information Center.

  • You can place these options in the SystemDefault.properties file.
  • You can use the CLASSPATH environment variable to specify the classpath (see above).
  • You can place these options in an environment variable called QIBM_RPG_JAVA_PROPERTIES. Any options placed in this environment variable will override the options in the SystemDefault.properties file. If you specify the java.class.path option in this environment variable, and you also specified the CLASSPATH environment variable, it is undefined which value will take precedence for the classpath.

    To specify options in the QIBM_RPG_JAVA_PROPERTIES environment variable, you code the options in a string, one after the other, separated by any character that does not appear in any of the options. Then you end the string with the separator character. For example, if you want to specify the options

    java.version=1.4    
    os400.stderr=file:stderr.txt
    

    then you would add the environment variable using the following command:

    ADDENVVAR ENVVAR(QIBM_RPG_JAVA_PROPERTIES)                                 
    VALUE('-Djava.version=1.4;-Dos400.stderr=file:stderr.txt;')
    

If the options string is not valid, Java may reject one of the options. Message JVAB55A will appear in the joblog indicating which option was not valid. If this happens, RPG will try to start the JVM again without any of the options, but still including the java.class.path option if it came from the CLASSPATH environment variable.

<Previous   Next>