我於c seperately 擾2 java程序:在C \試驗和其他:\測試\新CLASSPATH內的值的順序是什麼?
我可以編譯兩者是沒有任何錯誤\ javac的
但是,當我嘗試執行該文件\ java的 它這樣表示
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at ButtonFrame.makeButton(ButtonTest3.java:42)
at ButtonFrame.<init>(ButtonTest3.java:29)
at ButtonTest$1.run(ButtonTest.java:17)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
我把這個在我的類路徑
CLASSPAT錯誤ħ值 - C:\測試; C:\測試\新
但如果我改變的值的順序在CLASSPATH本
CLASSPATH值 - C:\測試\新; C^:\測試
的錯誤只是去
爲什麼?這可能發生 只有訂單很重要?
需要一段時間來思考,但最後我得到了它:) – CHEMlSTRY 2010-09-26 05:06:05
不客氣。 – BalusC 2010-09-26 05:19:44