Deploytool fails to open in Matlab R2013a.
8 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
Greetings for the new year!
I have Matlab R2013a and Matlab Compiler 4.18.1. When I click on Matlab Compiler or I type deploytool in command window, I get the following error:
Undefined variable "com" or class
"com.mathworks.mde.deploytool.plugin.PluginManager.allowMatlabThreadUse".
Error in deploytool (line 39)
com.mathworks.mde.deploytool.plugin.PluginManager.allowMatlabThreadUse()
On line 39, the comment says it calls Java to parse command line.
When I type
version -java
I get answer as
Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
I have downloaded JDK1.6.0_17 version of Java.
Since I am not well versed with Java, I do not know that is causing this problem. The rest of the tool boxes open without any error.
Please help!
Best Regards, Rishi
0 个评论
回答(1 个)
Roja
2014-6-24
The error indicates that the MATLAB installation is missing the following java files:
MATLABROOT\java\jar\project\impl.jar
MATLABROOT\java\jar\project\api.jar
In addition, the above two paths should be present in the output of the JAVACLASSPATH, among the static Java paths; if not, the following entries need to be added to "classpath.txt" in "<MATLABROOT>\toolbox\local"
#Java classpath entries for matlab_java_project_api
$matlabroot/java/jar/project/api.jar
#Java classpath entries for matlab_java_project_impl
$matlabroot/java/jar/project/impl.jar
I would suggest reinstalling MATLAB. This should fix all of the above.
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!