Skip to main content

java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment (initialization failure)


Technote (troubleshooting)


Problem

You try to run a Java agent on a Lotus® Domino® for IBM® i (i5/OS®) server. It is failing with the following error message:

    "java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment (initialization failure)"
The agent works when run on Microsoft® Windows®.

Environment

IBM i V5R4

Resolving the problem

IBM i requires that you edit or add the following line to the SystemDefault.properties file.

    java.awt.headless=true

For details, refer to the IBM i Information Center at:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaha/nawtsystemprops.htm

You can edit the file using the following command:

EDTF STMF('/QIBM/UserData/JAVA400/SystemDefault.properties')

Warning: Java is case sensitive. Be sure to create the file name exactly as shown and to use all lowercase letters for the property.

Be aware that this property must be set at the system level. Creating a SystemDefault.properties file in the /home/QNOTES directory will not allow the agent to run.

Related information

System Properties needed for NAWT


    Product Alias/Synonym

    AS/400
    OS/400
    iSeries
    System i
    i5/OS
    IBM i

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

IBM Domino


Software version:
7.0, 8.0, 8.5


Operating system(s):
IBM i, i5/OS


Software edition:
Edition Independent


Reference #:
1321471


Modified date:
2009-12-01

Translate my page

Content navigation