本文介绍了无法使用最新的JDK(1.7.0_45)在新的netbeans 7.4上访问合成主题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我正在将我的Netbeans 6.8更新为新的Netbeans 7.4,将JDK 1.7.0更新为1.7.0_45时,当我在新的Netbeans版本sysnthetica look and feel上打开我的上一个项目时不起作用:(其他一切工作正常: )

Today i was update my Netbeans 6.8 to new Netbeans 7.4 and JDK 1.7.0 to 1.7.0_45 When i open my previous project on new Netbeans version sysnthetica look and feel is not working :( other everything is working perfectly :)

try {
UIManager.setLookAndFeel(new SyntheticaBlackStarLookAndFeel());                  

new frm_login().setVisible(true);
    } catch (Exception e) {
        e.printStackTrace();
    }

这是错误:

Exception in thread "main" java.lang.NoClassDefFoundError: sun/swing/plaf/synth/SynthUI
at de.javasoft.plaf.synthetica.SyntheticaDefaultLookup.getDefault(SyntheticaDefaultLookup.java:84)
at sun.swing.DefaultLookup.get(DefaultLookup.java:125)
at javax.swing.plaf.basic.BasicButtonListener.getInputMap(BasicButtonListener.java:119)
at javax.swing.plaf.basic.BasicButtonListener.installKeyboardActions(BasicButtonListener.java:95)
at javax.swing.plaf.basic.BasicButtonUI.installKeyboardActions(BasicButtonUI.java:138)
at javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:90)
at javax.swing.JComponent.setUI(JComponent.java:664)
at javax.swing.AbstractButton.setUI(AbstractButton.java:1807)
at javax.swing.JButton.updateUI(JButton.java:146)
at javax.swing.AbstractButton.init(AbstractButton.java:2172)
at javax.swing.JButton.<init>(JButton.java:136)
at javax.swing.JButton.<init>(JButton.java:90)
at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel.installCompatibilityDefaults(SyntheticaLookAndFeel.java:553)
at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel.access$4(SyntheticaLookAndFeel.java:405)
at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel$2.propertyChange(SyntheticaLookAndFeel.java:313)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:92)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:545)
at javaapplication1.JavaApplication1.main(JavaApplication1.java:27)
Caused by: java.lang.ClassNotFoundException: sun.swing.plaf.synth.SynthUI
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 21 more
Java Result: 1

发生这种情况的原因是什么?我该如何解决?

What is the reason to happened this ? how do i resolve this ?

预先感谢!

推荐答案

您很可能正在使用不支持JDK 1.7的Synthetica版本.下载最新的Synthetica,您应该正在运行

丹尼尔B

这篇关于无法使用最新的JDK(1.7.0_45)在新的netbeans 7.4上访问合成主题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 03:58