Vasilica
unread,Nov 17, 2012, 6:03:11 AM11/17/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I'm trying to wrap a program of mine to work with java. I tried a simple "hello world" first,
-hello world.m-
disp('hello world');
ant:
<mkdir dir="C:\work\hellopck\distrib" />
<mkdir dir="C:\work\hellopck\src" />
mcc -W 'java:hellopck,hellocls' -T link:lib -d C:\work\hellopck\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{hellocls:C:\work\hello.m}
Compiler version: 4.17 (R2012a)
Processing C:\Program Files\MATLAB\R2012a\toolbox\matlab\mcc.enc
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file C:\work\hellopck\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
1 item(s) added.
Generating MATLAB path for the compiled application...
Created 42 path items.
Begin validation of MEX files: Sat Nov 17 12:50:53 2012
End validation of MEX files: Sat Nov 17 12:50:53 2012
Warning: Adding path "C:\work" to Compiler path instance.
Parsing file "C:\work\hello.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2012a\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "C:\Program Files\MATLAB\R2012a\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Deleting 0 temporary MEX authorization files.
Generating file "C:\work\hellopck\src\readme.txt".
The system cannot find the path specified.
Error: An error occurred while shelling out to javac (error code = 1).
Unable to build executable.
Executing command: ""C:\ProgramFiles\Java\jdk1.6.0_17\bin\javac" -verbose -classpath "C:\Program Files\MATLAB\R2012a\toolbox\javabuilder\jar\javabuilder.jar" -d "C:\work\hellopck\src\classes" "C:\work\hellopck\src\hellopck\hellocls.java" "C:\work\hellopck\src\hellopck\HellopckMCRFactory.java" "C:\work\hellopck\src\hellopck\helloclsRemote.java" "C:\work\hellopck\src\hellopck\package-info.java""
java is installed same version with matlab java :
C:\Users\salas>java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
C:\Program Files\Java\jdk1.6.0_17\bin>javac -version
javac 1.6.0_17
>> version -java
ans =
Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Environment variable is set:
>> getenv JAVA_HOME
ans =
C:\ProgramFiles\Java\jdk1.6.0_17
Any help ?