[英]java.lang.NoClassDefFoundError: Could not initialize class javax.swing.UIManager
I have meet this error,does anyone know why is it? 我遇到了这个错误,有人知道为什么吗? Java Version: 1.6.0_16 Java版本:1.6.0_16
java.lang.NoClassDefFoundError: Could not initialize class javax.swing.UIManager
at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:191)
at ilog.views.chart.IlvChart.updateUI(Unknown Source)
and it print another error that: 并显示另一个错误:
java.lang.UnsatisfiedLinkError: shell32.dll: Cannot load shell32.dll from system directories.
at sun.awt.windows.WDesktopProperties.init(Native Method)
at sun.awt.windows.WDesktopProperties.<init>(WDesktopProperties.java:66)
at sun.awt.windows.WToolkit.lazilyInitWProps(WToolkit.java:817)
at sun.awt.windows.WToolkit.lazilyLoadDesktopProperty(WToolkit.java:807)
at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1759)
at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1740)
at javax.swing.UIManager.<clinit>(UIManager.java:357)
at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:191)
at ilog.views.chart.IlvChart.updateUI(Unknown Source)
does them have any relations indeep? 他们有深厚的关系吗?
Assuming you're running on Windows, shell32.dll should be in your system32 folder, eg c:\\Windows\\System32\\shell32.dll
. 假设您在Windows上运行,则shell32.dll应该位于您的system32文件夹中,例如c:\\Windows\\System32\\shell32.dll
。
It seems unlikely that you'd be able to run Windows without it... perhaps your JDK/JRE has become corrupt somehow? 如果没有它,您似乎不太可能运行Windows……也许您的JDK / JRE某种程度上已经损坏了? Maybe a registry entry gone astray? 注册表项可能会误入歧途? Possibly worth reinstalling just the JDK/JRE - and if you're on a 64-bit machine, make sure you install a 64-bit version. 可能只需要重新安装JDK / JRE-如果您使用的是64位计算机,请确保安装64位版本。 While I'd expect the 32-bit version to work too (like any other 32-bit application on 64-bit Windows) it's just about conceivable that it would lead to this sort of problem. 虽然我希望32位版本也能正常工作(就像64位Windows上的任何其他32位应用程序一样),但可以想象会导致这种问题。
I uninstalled and reinstalled my JDK, and then ran into this error while trying to use the WindowBuilder Editor in Eclipse. 我卸载并重新安装了JDK,然后在尝试在Eclipse中使用WindowBuilder编辑器时遇到了此错误。
I fixed the problem by restarting Eclipse. 我通过重新启动Eclipse解决了该问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.