Exception occurred during event dispatching:
java.lang.NullPointerException
at com.mathworks.ide.cmdline.CommandHistory$HistoryList.getCommentColorPref(CommandHistory.java:2101)
at com.mathworks.ide.cmdline.CommandHistory$HistoryList.<init>(CommandHistory.java:2087)
at com.mathworks.ide.cmdline.CommandHistory.<init>(CommandHistory.java:1488)
at com.mathworks.ide.cmdline.CommandHistory.addLine(CommandHistory.java:1135)
at com.mathworks.ide.cmdline.MatlabCommandWidget.sendCommand(MatlabCommandWidget.java:3533)
at com.mathworks.ide.cmdline.MatlabCommandWidget.doEnterKey(MatlabCommandWidget.java:4643)
at com.mathworks.ide.cmdline.MatlabCommandWidget.access$29(MatlabCommandWidget.java:4630)
at com.mathworks.ide.cmdline.MatlabCommandWidget$KeyEventHandler.doEmacsKeys(MatlabCommandWidget.java:4817)
at com.mathworks.ide.cmdline.MatlabCommandWidget$KeyEventHandler.keyPressed(MatlabCommandWidget.java:4784)
at java.awt.AWTEventMulticaster.keyPressed(Unknown Source)
at java.awt.AWTEventMulticaster.keyPressed(Unknown Source)
at java.awt.AWTEventMulticaster.keyPressed(Unknown Source)
at java.awt.Component.processKeyEvent(Unknown Source)
at com.mathworks.mwt.MWComponent.processKeyEvent(MWComponent.java:548)
at com.mathworks.mwt.text.MWTextView$TextCanvas.processKeyEvent(MWTextView.java:6810)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.processKeyEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
What is the solution?
what is the version Matlab??? is release 12 (version 6.0) or 13(version 6.5)? pentium IV? windows XP? version java??
I had this problem whith XP-Pentium IV-Matlab6.0
this is your case?
The mathwork's solution don't work only with java virtual machine correctly installed, (SDK 1.3.1_08 and environment variable MATLAB_JAVA and value C:\jdk1.3.1_08\jre)
you should too select a text and copy clipboard before to run matlab.