MATLAB deploytool not working, fails while building.

조회 수: 5 (최근 30일)
Ivan Stojanov
Ivan Stojanov 2014년 5월 29일
편집: Ivan Stojanov 2015년 1월 29일
I'm following this tutorial about using the deploytool in MATLAB. When I click on "Build" button, building fails and I got the folliwing messages:
ant: <mkdir dir="C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\distrib" /> <mkdir dir="C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src" /> mcc -W 'java:com.vararg_java,vararg_javaclass' -T link:lib -d 'C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src' -w enable:specified_file_mismatch -w enable:repeated_file -w enable:switch_ignored -w enable:missing_lib_sentinel -w enable:demo_license -v 'class{vararg_javaclass:C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\Examples\java_web_vararg_demo\mcode\varargexample.m}' Compiler version: 4.15 (R2011a) Processing C:\Program Files\MATLAB\R2011a\toolbox\matlab\mcc.enc Processing include files... 2 item(s) added. Processing directories installed with MCR... The file C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive. 2 item(s) added. Generating MATLAB path for the compiled application... Created 41 path items. Begin validation of MEX files: Thu May 29 15:00:03 2014 Validating 'C:\Program Files\MATLAB\R2011a\toolbox\compiler\componentinfo.mexw32'. Found MATLAB file 'C:\Program Files\MATLAB\R2011a\toolbox\compiler\componentinfo.m'. MEX file 'C:\Program Files\MATLAB\R2011a\toolbox\compiler\componentinfo.mexw32' is valid. It contains 'mexFunction.' Validating 'C:\Windows\system32\Display.dll'. No conflicting MATLAB file found. Validating 'C:\Windows\system32\input.dll'. No conflicting MATLAB file found. Validating 'C:\Windows\system32\version.dll'. No conflicting MATLAB file found. End validation of MEX files: Thu May 29 15:00:03 2014 Parsing file "C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\Examples\java_web_vararg_demo\mcode\varargexample.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files\MATLAB\R2011a\toolbox\compiler\deploy\deployprint.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files\MATLAB\R2011a\toolbox\compiler\deploy\printdlg.m" (Referenced from: "Compiler Command Line"). Deleting 4 temporary MEX authorization files. Removing: 'C:\Users\IVANIZ~1\AppData\Local\Temp\mathworks_tmp_2536_10757_2536.auth'. Removing: 'C:\Users\IVANIZ~1\AppData\Local\Temp\mathworks_tmp_2536_4195_2536.auth'. Removing: 'C:\Users\IVANIZ~1\AppData\Local\Temp\mathworks_tmp_2536_17307_2536.auth'. Removing: 'C:\Users\IVANIZ~1\AppData\Local\Temp\mathworks_tmp_2536_7408_2536.auth'. Generating file "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\readme.txt". Executing command: ""C:\Program Files\Java\jdk1.8.0_05\bin\javac" -verbose -classpath "C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar" -d "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\classes" "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclass.java" "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\Vararg_javaMCRFactory.java" "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclassRemote.java" "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\package-info.java"" [parsing started RegularFileObject[C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclass.java]] [parsing completed 123ms] [parsing started RegularFileObject[C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\Vararg_javaMCRFactory.java]] [parsing completed 7ms] [parsing started RegularFileObject[C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclassRemote.java]] [parsing completed 2ms] [parsing started RegularFileObject[C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\package-info.java]] [parsing completed 1ms] [search path for source files: C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar] [search path for class files: C:\Program Files\Java\jdk1.8.0_05\jre\lib\resources.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\rt.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\sunrsasign.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\jsse.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\jce.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\charsets.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\jfr.jar,C:\Program Files\Java\jdk1.8.0_05\jre\classes,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\access-bridge.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\cldrdata.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\dnsns.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\jaccess.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\jfxrt.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\localedata.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\nashorn.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\sunec.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\sunjce_provider.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\sunmscapi.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\sunpkcs11.jar,C:\Program Files\Java\jdk1.8.0_05\jre\lib\ext\zipfs.jar,C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/internal/MWComponentInstance.class)]] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/Disposable.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Object.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/util/Set.class)]] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/internal/MWFunctionSignature.class)]] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/internal/MWMCR.class)]] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWException.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/String.class)]] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWComponentOptions.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/util/List.class)]] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/pooling/Poolable.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/rmi/Remote.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/rmi/RemoteException.class)]] [checking com.vararg_java.vararg_javaclass] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Throwable.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/AutoCloseable.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/util/HashSet.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/util/Collection.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/util/AbstractSet.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/util/AbstractCollection.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Iterable.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Byte.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Character.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Short.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Long.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Float.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Integer.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Double.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Boolean.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Void.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Exception.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Class.class)]] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWCtfExtractLocation.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/io/File.class)]] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWCtfDirectorySource.class)]] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWCtfSource.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/io/Serializable.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/util/Arrays.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/Error.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/lang/RuntimeException.class)]] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/util/Iterator.class)]] [wrote RegularFileObject[C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\classes\com\vararg_java\vararg_javaclass.class]] [checking com.vararg_java.Vararg_javaMCRFactory] [loading ZipFileIndexFileObject[C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWCtfClassLoaderSource.class)]] [wrote RegularFileObject[C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\classes\com\vararg_java\Vararg_javaMCRFactory.class]] [checking com.vararg_java.vararg_javaclassRemote] [loading ZipFileIndexFileObject[C:\Program Files\Java\jdk1.8.0_05\lib\ct.sym(META-INF/sym/rt.jar/java/io/IOException.class)]] [wrote RegularFileObject[C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\classes\com\vararg_java\vararg_javaclassRemote.class]] [total 1484ms] Executing command: ""C:\Program Files\Java\jdk1.8.0_05\bin\jar" -vcf "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\vararg_java.jar" -C "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\classes" ." added manifest adding: com/(in = 0) (out= 0)(stored 0%) adding: com/vararg_java/(in = 0) (out= 0)(stored 0%) adding: com/vararg_java/vararg_java.ctf(in = 522659) (out= 509746)(deflated 2%) adding: com/vararg_java/vararg_javaclass.class(in = 3926) (out= 1631)(deflated 58%) adding: com/vararg_java/vararg_javaclassRemote.class(in = 354) (out= 235)(deflated 33%) adding: com/vararg_java/Vararg_javaMCRFactory.class(in = 1824) (out= 774)(deflated 57%) Executing command: ""C:\Program Files\Java\jdk1.8.0_05\bin\javadoc" -d "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html" -sourcepath "C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src" -classpath "C:\Program Files\MATLAB\R2011a\toolbox\javabuilder\jar\javabuilder.jar" com.vararg_java" Loading source files for package com.vararg_java... Constructing Javadoc information... Standard Doclet version 1.8.0_05 Building tree for all the packages and classes... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\com\vararg_java\vararg_javaclass.html... C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclass.java:112: warning: no @param for args public static void main (String[] args) ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclass.java:177: error: unexpected end tag: * ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclass.java:239: error: unexpected end tag: * ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclass.java:306: error: unexpected end tag: * ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclass.java:62: warning: no @throws for com.mathworks.toolbox.javabuilder.MWException public vararg_javaclass() throws MWException ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclass.java:91: warning: no @throws for com.mathworks.toolbox.javabuilder.MWException public vararg_javaclass(MWComponentOptions componentOptions) throws MWException ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclass.java:80: warning: no @throws for com.mathworks.toolbox.javabuilder.MWException public vararg_javaclass(String pathToComponent) throws MWException ^ Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\com\vararg_java\vararg_javaclassRemote.html... C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclassRemote.java:97: error: reference not found * @throws java.jmi.RemoteException An error has occurred during the function call or ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclassRemote.java:100: warning: no @throws for java.rmi.RemoteException public Object[] varargexample(int nargout, Object... rhs) throws RemoteException; ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\vararg_javaclassRemote.java:103: warning: no @throws for java.rmi.RemoteException void dispose() throws RemoteException; ^ Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\com\vararg_java\Vararg_javaMCRFactory.html... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\com\vararg_java\package-frame.html... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\com\vararg_java\package-summary.html... C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\package-info.java:8: warning: empty <p> tag * <p> ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\package-info.java:15: error: unexpected end tag: * ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\package-info.java:21: warning: empty <p> tag * <p> ^ C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\com\vararg_java\package-info.java:27: error: unexpected end tag: * ^ Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\com\vararg_java\package-tree.html... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\constant-values.html... Building index for all the packages and classes... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\overview-tree.html... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\index-all.html... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\deprecated-list.html... Building index for all classes... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\allclasses-frame.html... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\allclasses-noframe.html... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\index.html... Generating C:\Program Files\MATLAB\R2011a\matlabTest\vararg_java\src\doc\html\help-doc.html... 6 errors 8 warnings Error: An error occurred while shelling out to javadoc (error code = 1). Unable to build executable.
I think that everything is properly installed and I can not figure out why is not working. I was also following the "matlab help", but again I got no results.
Any help will be appreciated. Thanks.

답변 (6개)

Ivan Stojanov
Ivan Stojanov 2014년 6월 18일
편집: Ivan Stojanov 2014년 6월 18일
I'm following the "Product Help" menu and I have checked that. Everything is set up as described in your post and in help menu.
Is it a problem that I have 1.8.0_05 version installed on my PC and the result that I get in Matlab is:
ans =
Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot™ Client VM mixed mode
  댓글 수: 3
haseeb
haseeb 2014년 7월 2일
well, i'm also facing this problem, i'm using matlab r2009a. and i'm also following the tutorial mentioned above in the post above. the java version on my matlab is:
Java 1.6.0_12-b04 with Sun Microsystems Inc. Java HotSpot™ Client VM mixed mode
i'm trying to find this version on internet by i'm not able to fing it, @madhua suresh, can u help me in finding this version or can suggest me an alternate to follow? sorry, em very new to java, i'm a lil bit familiar with matlab, and now i want to generate java code of my matlab algorithm,so that i should be able to make an android app of my algorithm.. plz do help me :)
haseeb
haseeb 2014년 7월 2일
when i follow the whole procedure, and then click on build button, after compiling for a few time, i get this error, build failed. this is the whole thing i get:
mkdir 'C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\distrib' Warning: Directory already exists. mkdir 'C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\src' Warning: Directory already exists. mcc -F C:\Users\Haseeb Qureshi\Documents\MATLAB\MLTest.prj MATLAB:I18n:InconsistentLocale - The system locale setting, English (United Kingdom)_United Kingdom.1252, is different from the user locale setting, English (United States)_United States.1252. mcc -W 'java:com.demo,Class1' -d 'C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\src' -T 'link:lib' -v 'class{Class1:C:\Users\Haseeb Qureshi\Documents\MATLAB\makeSqr.m}' Compiler version: 4.11 (R2009b) Processing include files... 2 item(s) added. Processing directories installed with MCR... The file C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive. 2 item(s) added. Generating MATLAB path for the compiled application... Created 40 path items. Begin validation of MEX files: Wed Jul 02 20:49:18 2014 End validation of MEX files: Wed Jul 02 20:49:18 2014 Parsing file "C:\Users\Haseeb Qureshi\Documents\MATLAB\makeSqr.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files (x86)\MATLAB\R2009b\toolbox\compiler\deploy\deployprint.m" (Referenced from: "Compiler Command Line"). Parsing file "C:\Program Files (x86)\MATLAB\R2009b\toolbox\compiler\deploy\printdlg.m" (Referenced from: "Compiler Command Line"). Deleting 0 temporary MEX authorization files. Generating file "C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\src\readme.txt". Executing command: "javac -verbose -classpath "C:\Program Files (x86)\MATLAB\R2009b\toolbox\javabuilder\jar\javabuilder.jar" -d "C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\src\classes" "C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\src\com\demo\Class1.java" "C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\src\com\demo\DemoMCRFactory.java" "C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\src\com\demo\Class1Remote.java" "C:\Users\Haseeb Qureshi\Documents\MATLAB\demo\src\com\demo\package-info.java""
'javac' is not recognized as an internal or external command, operable program or batch file. Error: An error occurred while shelling out to javac (error code = 1). Unable to build executable.
this is the error em also getting, plz @madhura suresh, do help me :)

댓글을 달려면 로그인하십시오.


Madhura Suresh
Madhura Suresh 2014년 6월 16일
Firstly, the JDK version that you have on your machine does not match the one that is supported by MATLAB. To find out what version of Java your MATLAB version needs, use:
>> version -java
ans =
Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot™ Client VM mixed mode
This means that you will need Java version 1.7.0_11 to compile the MATLAB code into a JAR. You will also need to set up JAVA_HOME according to this Builder JA environment setup documentation:

Snake
Snake 2015년 1월 27일
편집: Snake 2015년 1월 27일
@haseeb did you manage to find a solution? I am having exactly the same problem.

Ivan Stojanov
Ivan Stojanov 2015년 1월 27일
편집: Ivan Stojanov 2015년 1월 29일
Hi all,
I just want to say that I didn't find the answer to this problem.
Thanks

Snake
Snake 2015년 1월 28일
편집: Snake 2015년 1월 28일
It a crazy stuff, I am trying to find a solution one month. I came to the conclusion that it has to do with Windows.

Titus Edelhofer
Titus Edelhofer 2015년 1월 28일
Hi Ivan,
did you change the version of the JDK? You don't have to use the exact same, just the same major version. So if your MATLAB uses java_1.6_xy, grab from Oracles homepage the latest JDK 1.6 (same for 1.7 if you have a newer MATLAB).
Titus
  댓글 수: 4
Snake
Snake 2015년 1월 29일
Yes this is copy paste error. Is is Executing command: ""C:\Program Files\Java\jdk1.6.0_17\bin\javac"
Snake
Snake 2015년 1월 29일
편집: Snake 2015년 1월 29일
I got similar issue when I try to compile c++ library:
Error: An error occurred while shelling out to mbuild (error code = -1). Unable to build executable. Executing command: ""C:\Program Files\MATLAB\R2013a\bin\mbuild"
My matlab version is 2013a http://www.mathworks.com/support/compilers/R2013a/ here the dependencies. I tried mbuild -setup, and setup the Microsoft Visual C++ 2010 in C:\Program Files (x86)\Microsoft Visual Studio 10.0 compiler.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by