This discussion is archived
2 Replies Latest reply: Sep 21, 2011 3:34 AM by DarrylBurke RSS

Could not initialize class javax.swing.UIManager

886381 Newbie
Currently Being Moderated
Dear all,
I'm newbie of java technology.
I need your help to solve my issue.
I developed a Java fx application and I run it with:

javafx -classpath application.jar application.Main

It works on every win 7 system.

On some xp system (not everyone, only some one) I got this exception:
java.lang.noclassdeffounderror: Could not initialize class javax.swing.UIManager
line on which error appears is the following
for (info: LookAndFeelInfo in UIManager.getInstalledLookAndFeels()) {

from this code
// use NIMBUS look
    try {
        for (info: LookAndFeelInfo in UIManager.getInstalledLookAndFeels()) {
            if ("Nimbus".equals(info.getName())) {
    } catch (cEx: Exception) {
Could you please help me??
I'm desperate...I can't reproduce error on each xp system, because on most of them application works...only on some xp system it appears.
I tried to uninstall jre and install latest one and I also updated graphic drivers to latest one.

I hope someone can help me...I can't solve it and I'm crazying.

Thanks in advance


  • Correct Answers - 10 points
  • Helpful Answers - 5 points