cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundError: sun.awt.X11GraphicsEnvironment

Former Member
0 Kudos

Hi all,

We are trying to generate dynamic images on portal Applications (.PAR and Web Dynpro Applications) and the application crashed and give us the following error:

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

at java.lang.J9VMInternals.initialize(J9VMInternals.java:132)

at java.lang.Class.forNameImpl(Native Method)

at java.lang.Class.forName(Class.java:119)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)

We already verified the configuration on the config tool illustrated on the SAP OSS Note 723909 precisely 10.2 setting the Djava.awt.headless parameter on u201Ctrueu201D but we still got the error.

Regards,

Orlando Covault

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

> We already verified the configuration on the config tool illustrated on the SAP OSS Note 723909 precisely 10.2 setting the Djava.awt.headless parameter on u201Ctrueu201D but we still got the error.

Did you restart the engine after setting that parameter?

Markus

Former Member
0 Kudos

Hi Markus,

The variable was already set on true. But we also restart de J2EE engine. The J2EE Engine is on AIX

Regards,

Former Member
0 Kudos

Hi all,

Although the parameter is set as "true" on the config tool.

When I use this code form a WD application I got "false" as a result

if (GraphicsEnvironment.isHeadless())

wdComponentAPI.getMessageManager().reportWarning("true");

else

wdComponentAPI.getMessageManager().reportWarning("false");

For me this is that the parameter is set as "false" somewhere else but I don´t know where. Any Ideas?

Regards,

Orlando Covault

Former Member
0 Kudos

Hi Orlando,

Set the parameter on both dispatcher and server nodes.

Cheers...,

Raghu

Answers (0)