Quantcast
Channel: MATLAB Central Newsreader - Matlab Builder - compiling java from command prompt
Viewing all articles
Browse latest Browse all 4

Re: Matlab Builder - compiling java from command prompt

$
0
0
Hi,
there probably is a space between Program and Files in the path? Use "":

javac -cp "C:\Program Files\MATLAB\R2008a\..."

Titus

"Abu Muhammad" <ppk664@my.utsa.edu> schrieb im Newsbeitrag
news:997888164.71033.1263497655373.JavaMail.root@gallium.mathforum.org...
> Hi,
>
> I am going over the magic square example over the documentation. I am in a
> state where I have my file on the distrib directory. I want to compile
> getmagic.java from the command window but I have not been successfull.
>
> From my current work directory:
> I run this on command window:
> javac -classpath C:\Program
> Files\MATLAB\R2008a\toolbox\javabuilder\jar\javabuilder.jar.\magicsquare\distrib\magicsquare.jar
> .\magic_square\MagicDemoJavaApp\getmagic.java
>
> I get this error:
> Usage: javac <options> <source files>
> use -help for a list of possible options
>
> I have space between magicsquare.jar and .\magic_square but no space
> between javabuilder.jar and .\magicsquare
>
> Can anyone tell me what I am doing wrong, I think it is related to that
> statement and the way it should be written.
>
> Thank you.
>

Viewing all articles
Browse latest Browse all 4

Trending Articles