When I try to run a simple plot script, I get the following error?

4 次查看(过去 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)

回答(1 个)

Kritika Bansal
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.

类别

Help CenterFile 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!

Translated by