Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a number of lab machines with different configurations. When one of our users tries to run a java application, such as jconsole, it will seem to start but there will be no display forwarding and no window will be shown. Under these conditions it will fail:

  • 64-bit Suse SLES11 installation on server
  • Client accesses servers through Citrix
  • The application is a java application

Change any of these and it works. 64-bit SLES10 machines work, 32-bit SLES11 machines work, accessing a 64-bit SLES11 machine with cygwin/linux works, running other applications than java applications works.

Is there some change in SuSE from SLES10 to SLES11 which might affect the display forwarding in Citrix?

Sometimes, after a varying amount of time, it crashes with this stack trace:

Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment 
    at java.lang.Class.forName0(Native Method) 
    at java.lang.Class.forName( 
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment( 
    at sun.awt.X11.XToolkit.<clinit>( 
    at java.lang.Class.forName0(Native Method) 
    at java.lang.Class.forName( 
    at java.awt.Toolkit$ 
    at Method) 
    at java.awt.Toolkit.getDefaultToolkit( 
    at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo( 
    at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults( 
    at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults( 
    at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults( 
    at javax.swing.UIManager.setLookAndFeel( 
    at javax.swing.UIManager.setLookAndFeel( 
    at javax.swing.UIManager.initializeDefaultLAF( 
    at javax.swing.UIManager.initialize( 
    at javax.swing.UIManager.maybeInitialize( 
    at javax.swing.UIManager.getLookAndFeel( 
Could not find the main class:  Program will exit. 

UPDATE: Still having the same problem, when changing to a different graphics lib it seems to change the problem:

export JAVA_HOME=/usr/java/default
export PJA=$HOME/lib/pja.jar
jconsole -J-Xbootclasspath:$JAVA_HOME/jre/lib/rt.jar:$PJA -J-Dawt.toolkit=com.eteks.awt.PJAToolkit -version

This produces the version, which it did not previously. The program still can't run though.

share|improve this question
up vote 1 down vote accepted

This has now finally been resolved, so I'm gonna leave this answer here for anyone else bumping into the same problem, since it's very unusual. Citrix has acknowledged that this is a problem with their product and has released a patch for this problem.

The Service Request number at Citrix is 60235154 and the patch will be included in the 2011 Q1 Feature Pack v3.

share|improve this answer
Hi Stefan. Thanks for providing this information, I have hit the same issue running java apps on SLED11 behind Xenapp on Unix (Named Metaframe 4.0 for UNIX at the time of installation). There has unfortunately still not been any FP3 release as of 2011 Q2. Did you get any patch or workaround from Citrix to get around the issue while waiting for the FP? – sajb Jun 29 '11 at 11:47
Yes, we did get a patch from Citrix and you should be able to get the same patch by giving them that Service Request number to see if it will work for you :-) – Stefan Thyberg Aug 1 '11 at 7:59
As far as I can tell this was still not fixed in PSE400SOL061, but finally fixed by the limited-release PSE400SOL063. – sajb Apr 18 '12 at 16:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.