IBM Developer Kit for Java (5770-JV1)

JV1 has added option 19 for Java™ 11 64-bit on IBM® i 7.5.

Note: There are many significant architectural changes coming with this and future versions of Java. While existing Java application may run unchanged in Java 11, it's imperative that Java applications are updated to take advantage of Modularity that is now available in Java 11. Java 11 may support existing Java applications, but future versions of Java will likely cause your Java applications to no longer run without updates.

The following updates may also affect your java applications:

  1. file.encoding property

    The file.encoding property is not a recommended input property in Java 11. The result may be unpredictable. The expected behavior of explicitly setting this property is not the same as the behavior when set for Java 8.

    Avoid changing the default charset of file content by setting property file.encoding on the command line: java -Dfile.encoding=.... Programmers can specify the desired charset explicitly as an argument, as follows:

    FileReader reader = new FileReader("sample.txt", Charset.forName("Cp037"));
  2. JAVA/RUNJVA CL command parameter changes

    To support modular programs, two new parameters, MAINCLASS and MODULEPATH, are available on the JAVA and RUNJVA CL commands.

    The MAINCLASS parameter is to specify if the class name specified by CLASS is in a module. It has two options:

    *NO
    The class name to be run is not in a module
    *YES
    The class name to be run is in a module

    The MODULEPATH parameter is to specify the path used to locate modules. Directories are separated by colons. It has two options:

    *NONE
    The module path is not specified
    module-path
    Path used to locate modules

For more information about Java on IBM i, see Java on IBM i and IBM i Documentation.