NetBSD-Java archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problem with Nimbus in openjdk7



Hi!

I'm using openjdk7 from pkgsrc as of today's sources, and
it runs Netbeans very well, but i run into problems when i want to
switch to the Nimbus look'n'feel:

$ /opt/jedit/bin/jedit                                                          
                                                     
1:56:51 AM [main] [error] jEdit: java.lang.NullPointerException
1:56:51 AM [main] [error] jEdit:  at 
sun.font.FontManager.getFontConfigFont(FontManager.java:3481)
1:56:51 AM [main] [error] jEdit:  at 
sun.font.FontManager.getFontConfigFUIR(FontManager.java:3601)
1:56:51 AM [main] [error] jEdit:  at 
javax.swing.plaf.nimbus.NimbusDefaults.<init>(NimbusDefaults.java:134)
1:56:51 AM [main] [error] jEdit:  at 
javax.swing.plaf.nimbus.NimbusLookAndFeel.<init>(NimbusLookAndFeel.java:100)
1:56:51 AM [main] [error] jEdit:  at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
1:56:51 AM [main] [error] jEdit:  at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
1:56:51 AM [main] [error] jEdit:  at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
1:56:51 AM [main] [error] jEdit:  at 
java.lang.reflect.Constructor.newInstance(Constructor.java:535)
1:56:51 AM [main] [error] jEdit:  at 
java.lang.Class.newInstance0(Class.java:372)
1:56:51 AM [main] [error] jEdit:  at java.lang.Class.newInstance(Class.java:325)
1:56:51 AM [main] [error] jEdit:  at 
javax.swing.UIManager.setLookAndFeel(UIManager.java:593)
1:56:51 AM [main] [error] jEdit:  at 
org.gjt.sp.jedit.jEdit.initPLAF(jEdit.java:3568)
1:56:51 AM [main] [error] jEdit:  at org.gjt.sp.jedit.jEdit.main(jEdit.java:438)

The test application was jedit as it allows setting theme from a menu, bu i 
cant get working it with Netbeans
or anything else either.

Looking at the code it seems that something doesnt get initialized, but I 
couldnt find
the code for the initialization itself.

Any ideas?


Home | Main Index | Thread Index | Old Index