Java error in editor in R2013b
11 ビュー (過去 30 日間)
古いコメントを表示
New computer running windows 7 enterprise. I Installed Matlab 2013b. Whenever I launch the editor I get the following error
Undefined function 'rmiml.getAll' for input arguments of type 'char'.
Undefined function 'rmiml.visibleInToolstrip' for input arguments of type 'char'.
Undefined function 'rmiml.visibleInToolstrip' for input arguments of type 'char'.
Undefined function 'rmiml.visibleInToolstrip' for input arguments of type 'char'.
java.lang.NullPointerException at com.mathworks.toolbox.simulink.slvnv.RmiEditorToolstripContributor$4$1.runOnAWTEventDispatchThread(RmiEditorToolstripContributor.java:173) at com.mathworks.jmi.MatlabWorker$1.run(MatlabWorker.java:67) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(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) java.lang.NullPointerException at com.mathworks.toolbox.simulink.slvnv.RmiEditorToolstripContributor$4$1.runOnAWTEventDispatchThread(RmiEditorToolstripContributor.java:173) at com.mathworks.jmi.MatlabWorker$1.run(MatlabWorker.java:67) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(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) java.lang.NullPointerException at com.mathworks.toolbox.simulink.slvnv.RmiEditorToolstripContributor$4$1.runOnAWTEventDispatchThread(RmiEditorToolstripContributor.java:173) at com.mathworks.jmi.MatlabWorker$1.run(MatlabWorker.java:67) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)
2 件のコメント
Scott
2013 年 11 月 11 日
Just a note to the original poster: This problem was resolved for me by uninstalling and reinstalling R2013b.
回答 (1 件)
Michael
2014 年 4 月 2 日
I had the same error, and it stopped my own GUI-based programmes running to boot.
My problem started when I launched an old version (2011a) to test some code. I had changed some paths during my testing. I then followed Scott's advice about re-installing, but the error still happened. I then uninstalled all versions of Matlab from my machine, taking care to clear out all settings and to delete folder remnants after the uninstaller finished.
I re-installed 2013b, but still had the same problem! Then I noticed my old paths still existed. I deleted my pathdef file that was sitting in Documents/Matlab folder, restarted Matlab, and all is good!
2 件のコメント
Sean de Wolski
2014 年 4 月 22 日
Yes, the following should resolve it:
restoredefaultpath;
rehash toolboxcache;
If it does,
savepath
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!