Deploytool fails to open in Matlab R2013a.

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

Réponses (1)

Roja
Roja le 24 Juin 2014

0 votes

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.

Catégories

Produits

Question posée :

le 7 Jan 2014

Réponse apportée :

le 24 Juin 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by