f



MATLAB Builder for Java

I tried to follow the  'Magic Square Example'
but I got such error.
My matlab version is R2007b,JDK version is jdk1.6.0_03
jdk1.5.0_08(either got the same error)

Any reply to yekai@itechs.iscas.ac.cn is appreciated!

thx!



<BASE href=''><font color=black>Build output( 2008-01-07
19:26:14).<p/><p/><a href="matlab:mcc -F
'E:\MATLAB\javabuilder_examples\magic_square\magicsquare.prj'">mcc
-F
'E:\MATLAB\javabuilder_examples\magic_square\magicsquare.prj'</a><p/><p/></font>
<p><font color=red>

<pre>
Compiler version: 4.7 (R2007b) 
mcc -W 'java:magicsquare,magic' -d
'E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src'
-T 'link:lib' -v
'class{magic:E:\MATLAB\javabuilder_examples\magic_square\MagicDemoComp\makesqr.m}'
 
Processing C:\Program
Files\MATLAB\R2007b\toolbox\matlab\mcc.enc 
Processing include files... 
2 item(s) added. 
Processing directories installed with MCR... 
The file
E:\MATLAB\javabuilder_examples\magic_square\magicsquare\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 36 path items. 
Begin validation of MEX files: Mon Jan 07 19:29:40 2008 
Validating 'C:\Program
Files\MATLAB\R2007b\toolbox\compiler\deploy\deploywhich.mexw32'.

No conflicting M-file found. 
Validating 'C:\Program
Files\MATLAB\R2007b\toolbox\compiler\deploy\readline.mexw32'. 
No conflicting M-file found. 
End validation of MEX files: Mon Jan 07 19:29:40 2008 
Deleting 2 temporary MEX authorization files. 
Removing:
'C:\DOCUME~1\kevin\LOCALS~1\Temp\mathworks_tmp_23690_2700.auth'.

Removing:
'C:\DOCUME~1\kevin\LOCALS~1\Temp\mathworks_tmp_10880_2700.auth'.

Parsing file
"E:\MATLAB\javabuilder_examples\magic_square\MagicDemoComp\makesqr.m"

	(Referenced from: "Compiler Command Line"). 
Parsing file "C:\Program
Files\MATLAB\R2007b\toolbox\compiler\deploy\deployprint.m" 
	(Referenced from: "Compiler Command Line"). 
Parsing file "C:\Program
Files\MATLAB\R2007b\toolbox\compiler\deploy\printdlg.m" 
	(Referenced from: "Compiler Command Line"). 
Generating file
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare\magicsquareMCRFactory.java".

Generating file
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare\magic.java".

Generating file
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare\magicRemote.java".

Generating file
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\readme.txt".

Executing command: ""C:\Program
Files\Java\jdk1.5.0_08\bin\javac" -verbose -classpath
"C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar"
-d
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\classes"
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare\magicsquareMCRFactory.java"
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare\magic.java"
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare\magicRemote.java""

[&#35299;&#26512;&#24320;&#22987;&#26102;&#38388;
E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare\magicsquareMCRFactory.java]

[&#35299;&#26512;&#24050;&#23436;&#25104;&#26102;&#38388; 156ms] 
[&#35299;&#26512;&#24320;&#22987;&#26102;&#38388;
E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare\magic.java]

[&#35299;&#26512;&#24050;&#23436;&#25104;&#26102;&#38388; 16ms] 
[&#35299;&#26512;&#24320;&#22987;&#26102;&#38388;
E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare\magicRemote.java]

[&#35299;&#26512;&#24050;&#23436;&#25104;&#26102;&#38388; 0ms] 
[&#28304;&#25991;&#20214;&#30340;&#25628;&#32034;&#36335;&#24452;&#65306; [C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar]] 
[&#31867;&#25991;&#20214;&#30340;&#25628;&#32034;&#36335;&#24452;&#65306; [C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar, C:\Program
Files\Java\jdk1.5.0_08\jre\lib\jsse.jar, C:\Program
Files\Java\jdk1.5.0_08\jre\lib\jce.jar, C:\Program
Files\Java\jdk1.5.0_08\jre\lib\charsets.jar, C:\Program
Files\Java\jdk1.5.0_08\jre\lib\ext\dnsns.jar, C:\Program
Files\Java\jdk1.5.0_08\jre\lib\ext\localedata.jar,
C:\Program
Files\Java\jdk1.5.0_08\jre\lib\ext\sunjce_provider.jar,
C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\sunpkcs11.jar,
C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar]] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Object.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/String.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/ComponentDataPtr.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWComponentOptions.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/NativePtr.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWMCR.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWException.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWComponentInstance.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/Disposable.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/util/Set.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWFunctionSignature.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/util/List.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/pooling/Poolable.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/rmi/Remote.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/rmi/RemoteException.class)]

[&#27491;&#22312;&#26816;&#26597; magicsquare.magicsquareMCRFactory] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWCtfExtractLocation.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWCtfClassLoaderSource.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWCtfSource.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/NativeMCR.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Exception.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Throwable.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Class.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Error.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/RuntimeException.class)]

[&#24050;&#20889;&#20837;
E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\classes\magicsquare\magicsquareMCRFactory.class]

[&#27491;&#22312;&#26816;&#26597; magicsquare.magic] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/util/HashSet.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/util/Collection.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/util/AbstractSet.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/util/AbstractCollection.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Iterable.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/io/File.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar(com/mathworks/toolbox/javabuilder/MWCtfDirectorySource.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Thread.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Runnable.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/lang/Runtime.class)] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/util/Iterator.class)]

[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/util/Arrays.class)] 
[&#24050;&#20889;&#20837;
E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\classes\magicsquare\magic$1.class]

[&#24050;&#20889;&#20837;
E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\classes\magicsquare\magic.class]

[&#27491;&#22312;&#26816;&#26597; magicsquare.magicRemote] 
[&#27491;&#22312;&#35013;&#20837; C:\Program
Files\Java\jdk1.5.0_08\jre\lib\rt.jar(java/io/IOException.class)]

[&#24050;&#20889;&#20837;
E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\classes\magicsquare\magicRemote.class]

[&#24635;&#26102;&#38388; 8984ms] 
Executing command: ""C:\Program
Files\Java\jdk1.5.0_08\bin\jar" -vcf
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\magicsquare.jar"
-C
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\classes"
.." 
&#26631;&#26126;&#28165;&#21333;(manifest) 
&#22686;&#21152;&#65306;magicsquare/(&#35835;&#20837;= 0) (&#20889;&#20986;= 0)(&#23384;&#20648;&#20102; 0%) 
&#22686;&#21152;&#65306;magicsquare/magic$1.class(&#35835;&#20837;= 363) (&#20889;&#20986;= 260)(&#21387;&#32553;
&#20102; 28%) 
&#22686;&#21152;&#65306;magicsquare/magic.class(&#35835;&#20837;= 3876) (&#20889;&#20986;= 1652)(&#21387;&#32553;
&#20102; 57%) 
&#22686;&#21152;&#65306;magicsquare/magicRemote.class(&#35835;&#20837;= 322) (&#20889;&#20986;= 226)
(&#21387;&#32553;&#20102; 29%) 
&#22686;&#21152;&#65306;magicsquare/magicsquare.ctf(&#35835;&#20837;= 64183) (&#20889;&#20986;=
60358)(&#21387;&#32553;&#20102; 5%) 
&#22686;&#21152;&#65306;magicsquare/magicsquareMCRFactory.class(&#35835;&#20837;= 8371)
(&#20889;&#20986;= 3474)(&#21387;&#32553;&#20102; 58%) 
Executing command: ""C:\Program
Files\Java\jdk1.5.0_08\bin\javadoc" -d
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\doc\html"
-sourcepath
"E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src"
-classpath "C:\Program
Files\MATLAB\R2007b\toolbox\javabuilder\jar\javabuilder.jar"
magicsquare" 
&#27491;&#22312;&#35013;&#20837;&#36719;&#20214;&#21253; magicsquare &#30340;&#28304;&#25991;&#20214;... 
&#27491;&#22312;&#26500;&#36896; Javadoc &#20449;&#24687;... 
&#26631;&#20934; Doclet &#29256;&#26412; 1.5.0_08 
&#27491;&#22312;&#26500;&#24314;&#25152;&#26377;&#36719;&#20214;&#21253;&#21644;&#31867;&#30340;&#26641;... 
&#27491;&#22312;&#29983;&#25104;
E:\MATLAB\javabuilder_examples\magic_square\magicsquare\src\doc\html\magicsquare/\magic.html...

java.lang.IllegalArgumentException 
	at sun.net.www.ParseUtil.decode(ParseUtil.java:189) 
	at
sun.misc.URLClassPath$FileLoader.<init>(URLClassPath.java:863) 
	at sun.misc.URLClassPath$3.run(URLClassPath.java:319) 
	at java.security.AccessController.doPrivileged(Native Method) 
	at sun.misc.URLClassPath.getLoader(URLClassPath.java:313) 
	at sun.misc.URLClassPath.getLoader(URLClassPath.java:290) 
	at sun.misc.URLClassPath.findResource(URLClassPath.java:141) 
	at java.net.URLClassLoader$2.run(URLClassLoader.java:362) 
	at java.security.AccessController.doPrivileged(Native Method) 
	at
java.net.URLClassLoader.findResource(URLClassLoader.java:359) 
	at java.lang.ClassLoader.getResource(ClassLoader.java:977) 
	at
java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)

	at
javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:72)

	at java.security.AccessController.doPrivileged(Native Method) 
	at
javax.xml.parsers.SecuritySupport.getResourceAsStream(SecuritySupport.java:65)

	at
javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:213)

	at
javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185) 
	at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:107)

	at
com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(LayoutParser.java:72)

	at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)

	at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)

	at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)

	at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)

	at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)

	at
com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)

	at
com.sun.tools.doclets.standard.Standard.start(Standard.java:23) 
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:585) 
	at
com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)

	at
com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)

	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340) 
	at com.sun.tools.javadoc.Start.begin(Start.java:128) 
	at com.sun.tools.javadoc.Main.execute(Main.java:41) 
	at com.sun.tools.javadoc.Main.main(Main.java:31) 
com.sun.tools.doclets.internal.toolkit.util.DocletAbortException

	at
com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(LayoutParser.java:79)

	at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)

	at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)

	at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)

	at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)

	at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)

	at
com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)

	at
com.sun.tools.doclets.standard.Standard.start(Standard.java:23) 
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:585) 
	at
com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)

	at
com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)

	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340) 
	at com.sun.tools.javadoc.Start.begin(Start.java:128) 
	at com.sun.tools.javadoc.Main.execute(Main.java:41) 
	at com.sun.tools.javadoc.Main.main(Main.java:31) 
com.sun.tools.doclets.internal.toolkit.util.DocletAbortException

	at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:159)

	at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)

	at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)

	at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)

	at
com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)

	at
com.sun.tools.doclets.standard.Standard.start(Standard.java:23) 
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:585) 
	at
com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)

	at
com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)

	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340) 
	at com.sun.tools.javadoc.Start.begin(Start.java:128) 
	at com.sun.tools.javadoc.Main.execute(Main.java:41) 
	at com.sun.tools.javadoc.Main.main(Main.java:31) 
Error: An error occurred while shelling out to javadoc
(error code = 1). 
Unable to build executable. 
??? Error using ==> mcc
Error executing mcc, return status = 1.

There were errors during compilation process.

0
kaiye85 (1)
1/7/2008 11:38:07 AM
comp.soft-sys.matlab 211266 articles. 23 followers. lunamoonmoon (257) is leader. Post Follow

0 Replies
1137 Views

Similar Articles

[PageSpeed] 58

Reply: