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
"Titus Edelhofer" <titus.edelhofer@mathworks.de> wrote in message <hip96c$755$1@fred.mathworks.com>...
> Hi,
> there probably is a space between Program and Files in the path? Use "":
>
> javac -cp "C:\Program Files\MATLAB\R2008a\..."
>
> Titus


Also, classpath elements should be separated with ":", as follows:

javac -classpath "C:\Program Files\MATLAB\R2008a\toolbox\javabuilder\jar\javabuilder.jar:.\magicsquare\distrib\magicsquare.jar" .\magic_square\MagicDemoJavaApp\getmagic.java

You should really ask Java related questions in a Java forum, not a Matlab forum. A simple Google for "javac classpath syntax" would also have given you an immediate answer.

Yair Altman
http://UndocumentedMatlab.com

Viewing all articles
Browse latest Browse all 4

Trending Articles