When I try to run a simple plot script, I get the following error?
5 ビュー (過去 30 日間)
古いコメントを表示
Unable to initialize connector: null
java.lang.IllegalStateException: Error initializing Connector implementation
at com.mathworks.matlabserver.connector.api.Connector.getImpl(Connector.java:22)
at com.mathworks.matlabserver.connector.api.Connector.ensureServiceOn(Connector.java:137)
at com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.setMessageService(IsEditorExecutingFeature.java:69)
at com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.publish(IsEditorExecutingFeature.java:55)
at com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.setEditorIsExecuting(IsEditorExecutingFeature.java:51)
at com.mathworks.mde.embeddedoutputs.RegionEvaluator.markEditorAsExecuting(RegionEvaluator.java:379)
Error using matlab.internal.editor.evaluateCode
Java exception occurred:
org.apache.commons.lang.NotImplementedException: Connector is not running. Use
Connector.ensureServiceOn() to ensure it is running before using it.
at
com.mathworks.messageservice.MessageServiceFactory.getBuilder(MessageServiceFactory.java:39)
at
com.mathworks.messageservice.MessageServiceFactory.getMessageService(MessageServiceFactory.java:17)
at
com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.setMessageService(IsEditorExecutingFeature.java:73)
at
com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.publish(IsEditorExecutingFeature.java:55)
at
com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.setEditorIsExecuting(IsEditorExecutingFeature.java:51)
at
com.mathworks.mde.embeddedoutputs.RegionEvaluator.markEditorAsExecuting(RegionEvaluator.java:379)
0 件のコメント
回答 (1 件)
Kritika Bansal
2020 年 1 月 16 日
Hi,
You can try a couple of things to fix it:.
1.Type the following command in MATLAB command prompt to see if you have the connector installed:
which -all connector
2. If you don't see any connectors installed, run MATLAB as administrator and install the connectors.
3. Also there may be a possibility that the path to the connector folder is not added, try adding it manually.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!