Install OpenJDK 11

Warning:

As of Polarion 19 Oracle Java SE Development Kit 8 is no longer supported.

Caution:

Backup the Java Keystore before installing OpenJDK 11 and reimport it when you've finished installing OpenJDK and Polarion.

Warning:

When installing or upgrading to OpenJDK 11 make sure the default file encoding matches the same encoding used by the previous version of Java.

  1. Go to AdoptOpenJDK 11 (LTS).

    (AdoptOpenJDK 11 LTS is the recommended OpenJDK distribution because it's continuously tested with Polarion and offers long-term support.)

  2. Select the HotSpot implementation for Windows x64 and download the JDK .zip file.

  3. Extract the downloaded zip file into, for example, C:\Program Files\Java\.

    It will create a jdk-11.0.3+7 (version number may vary) folder within the location that you select.

  4. Set the System Variables:

    1. Enter Windows Control PanelSystemAdvanced System Settings.

    2. Click Advanced and then Environment Variables....

    3. Add the bin folder location (within the JDK folder) to the PATH variable in System Variables.

    Set JAVA_HOME:

    1. Under System Variables, click New.

    2. Enter JAVA_HOME as the Variable name.

    3. Enter the Variable value as the installation path of the JDK (without the bin sub-folder).

    4. Click OK.

    5. Click Apply Changes.

    Update PATH:

    1. Edit the PATH variable by adding %JAVA_HOME%\bin.

    2. Click OK.

    3. Click Apply Changes.

      C:\WINDOWS\system32;C:\WINDOWS;%JAVA_HOME%\bin

  5. (Optional) Configure the JDK in your Eclipse, IntelliJ or whatever IDE you develop in.

Tip:

You can see if OpenJDK installed correctly by opening a windows command prompt and typing java -version.

(If the result points to the newly installed OpenJDK you're good to go.)

Check file encoding

  1. Search for the file.encoding property in the main log file (C:\Polarion\data\logs\main\).

  2. If the default file encoding for the new Open JDK 11 differs, then define it explicitly as a Java Runtime property by adding the following property to the polarion.ini file:

    (Default location: C:\Polarion\polarion\polarion.ini.)

    • -Dfile.encoding=file_encoding

      Replace file_encoding with the one you use.

  3. Run service.bat to reinstall the Polarion service.