From: lior on
Hi,
I'm trying to compile a jar using the java builder (2009b)
like this
mcc -W 'java:MyPackage, Myclass' -T 'link:lib' -d 'S:\Example\src\' -v 'class{Myclass:S:\Example\hello_world2009.m}'

This is working fine from the Matlab prompt, BUT ..
when I try to compile via shell (cmd) command line it gives an error:
Error: "'java:MyPackage," is not a valid -W option argument

Plus

mcc -? show no option on -W 'java..'.

it looks like the command line mode does not recognize the java builder?

please advice.
Lior
From: Lior Cohen on
"lior " <lior_chn(a)yahoo.com> wrote in message <hps7be$4j6$1(a)fred.mathworks.com>...
> Hi,
> I'm trying to compile a jar using the java builder (2009b)
> like this
> mcc -W 'java:MyPackage, Myclass' -T 'link:lib' -d 'S:\Example\src\' -v 'class{Myclass:S:\Example\hello_world2009.m}'
>
> This is working fine from the Matlab prompt, BUT ..
> when I try to compile via shell (cmd) command line it gives an error:
> Error: "'java:MyPackage," is not a valid -W option argument
>
> Plus
>
> mcc -? show no option on -W 'java..'.
>
> it looks like the command line mode does not recognize the java builder?
>
> please advice.
> Lior

Finnaly found the solution the argument 'java:package, class' should be with " in cmd window (dos) whuile in Matlab command window it is ' .
 | 
Pages: 1
Prev: Memory management
Next: Active Apperaance Model