User`s guide

5 Sample Applications (Java)
Uses a try-catch block to catch and handle any exceptions.
7 Compile the createplot application using javac.
a. On Windows, execute the fo llo wing command:
javac -classpath
.;
matlabroot\java\jar\toolbox\javabuilder.jar;
.\distrib\plotdemo.jar createplot.java
b. On UNIX, execute this command:
javac -classpath
.:
matlabroot/java/jar/toolbox/javabuilder.jar:
./distrib/plotdemo.jar createplot.java
8 Run the application.
To run the
createplot.class file,dooneofthefollowing:
On Windows, type
java -classpath
.;
matlabroot\java\jar\toolbox\javabuilder.jar;
.\distrib\plotdemo.jar
-Djava.library.path=
matlabroot\bin\win32;.\distrib
createplot
On UNIX, type
java -classpath
.:
matlabroot/java/jar/toolbox/javabuilder.jar:
./distrib/plotdemo.jar
-Djava.library.path=
matlabroot/bin/<Arch>./distrib
createplot
% where <Arch> = glux86 gluxa64 sol2
5-6