Quantcast
Viewing latest article 4
Browse Latest Browse All 4

Matlab Builder - compiling java from command prompt

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 latest article 4
Browse Latest Browse All 4

Trending Articles