装完netbeans6.5后,启动就报这个错,实在摸不着头脑,请各位帮帮忙
java.lang.NullPointerException
at java.awt.Dimension.<init>(Dimension.java:91)
at javax.swing.plaf.basic.BasicProgressBarUI.getPreferredSize(BasicProgressBarUI.java:757)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
at org.netbeans.modules.progress.ui.NbProgressBar.getPreferredSize(NbProgressBar.java:90)
at org.netbeans.modules.progress.ui.StatusLineComponent.<init>(StatusLineComponent.java:137)
at org.netbeans.modules.progress.ui.ProviderImpl.getDefaultWorker(ProviderImpl.java:59)
at org.netbeans.progress.module.Controller.getProgressUIWorker(Controller.java:128)
at org.netbeans.progress.module.Controller.getVisualComponent(Controller.java:111)
at org.netbeans.progress.module.ProgressVisualizerProvider.getStatusLineElement(ProgressVisualizerProvider.java:55)
at org.netbeans.core.windows.view.ui.MainWindow.getStatusLineElements(MainWindow.java:245)
at org.netbeans.core.windows.view.ui.MainWindow.decoratePanel(MainWindow.java:219)
at org.netbeans.core.windows.view.ui.MainWindow.initializeComponents(MainWindow.java:183)
at org.netbeans.core.windows.view.DefaultView.showWindowSystem(DefaultView.java:519)
at org.netbeans.core.windows.view.DefaultView.windowSystemVisibilityChanged(DefaultView.java:498)
at org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:180)
at org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:269)
at org.netbeans.core.windows.ViewRequestor.processVisibilityRequest(ViewRequestor.java:258)
at org.netbeans.core.windows.ViewRequestor.postVisibilityRequest(ViewRequestor.java:195)
at org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:117)
at org.netbeans.core.windows.Central.setVisible(Central.java:119)
at org.netbeans.core.windows.WindowManagerImpl.setVisible(WindowManagerImpl.java:776)
at org.netbeans.core.windows.WindowSystemImpl.show(WindowSystemImpl.java:87)
[catch] at org.netbeans.core.NonGui$2.run(NonGui.java:183)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
------解决方案--------------------------------------------------------
是不是皮肤的问题啊,WINDOWS下 最近也是出问题,不过忘 了是哪个了.
启动文件里加个 --laf com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel -J-client -J-Xss1M -J-Xms90m ........................
这样它不会用系统的皮
------解决方案--------------------------------------------------------
另外也有可能是classpath里引入的第三方包有冲突,你把classpath里的第三方包先都剪切走再启动试试