Exception in thread "AWT-EventQueue-0" , java.lang.​NullPointe​rException for MATLAB Command Window Usage

I have used
com.mathworks.mde.cmdwin.CmdWin.getInstance() , to get the insatnce of command window in script.
After creating Console Application using R2010b sp1,and running application, am getting below java nullpointer error upon application startup.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.mathworks.mde.cmdwin.CmdWin$CWDTClientListener.run(CmdWin.java:407)
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)
I have tried to include mde.jar in package but that didn't worked

回答 (0 件)

この質問は閉じられています。

質問済み:

2014 年 6 月 30 日

閉鎖済み:

2016 年 8 月 5 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by