12.5. Platform Specific Issues

12.5.1. AS/400

12.5.1.1. Running under NAWT

To run any application using EspressChart in an AS/400 environment using NAWT, you must do the following:

  • Set the DISPLAY environment variable to the system name and display number. The display number is the display number of the VNC server.

  • Set the XAUTHORITY variable to /home/VNCProfile/.Xauthority, where VNCProfile is the profile that started the VNC server. Please note that XAUTHORITY need not be set if both the VNC server and the Java virtual machine is running under the same user profile.

  • Set the Java system property before running java

    os400.awt.native=true

12.5.1.2. Running under Headless Mode

To run any application using EspressChart in an AS/400 environment using headless mode, you must do the following:

  • Set the Java system property before running java

    java.awt.headless=true
  • Make sure that your code include the following before calling any QbChart constructor:

    QbChart.setForExportOnly(true);

12.5.2. Linux/Unix

12.5.2.1. Running under X

To run any application using EspressChart in a Linux/Unix environment using X, you must do the following:

Set the DISPLAY environment variable to a X client system name and display number.

12.5.2.2. Running under Headless Mode

To run any application using EspressChart in a Linux/Unix environment using headless mode, you must do the following:

  • Set the Java system property before running java

    java.awt.headless=true
  • Make sure that your code include the following before calling any QbChart constructor:

    QbChart.setForExportOnly(true);