MATLAB BUILDER JA 2 Podręcznik Użytkownika Strona 261

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 292
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 260
Requirements for MAT LAB Builder for Java
Note For matlabro ot substitute the MATLAB root directory on your system .
Type
matlabroot to see this directory name.
To set your CLASSPATH variable on your development machine, enter the
following command at the DOS command prompt:
set CLASSPATH=.;C:\matlabroot\toolbox\javabuilder\jar\javabuilder.jar;
C:\mycomponent\mycomponent.jar
Alternatively, if the Java SDK is installed, you can specify the class path on
the Java command line as follows.
javac
-classpath .;C:\
matlabroot\toolbox\javabuilder\jar\javabuilder.jar;
C:\mycomponent\mycomponent.jar usemyclass.java
where usemyclass.java isthefiletobecompiled.
It is recommended that you globally add any frequently used class paths to
the
CLASSPATH system variable via the Windows Control Panel.
Example: Setting CLASSPATH on UNIX (Development Machine).
Suppose your UNIX environment is as follows:
Your MATLAB libraries are installed in
/matlabroot/bin/arch,(where
arch is either glnx86, glnxa64, mac,orsol2, depending on the o perating
system of the machine.
Your component
.jar files are in /mycomponent.
To set your
CLASSPATH variable, enter the following command at the prompt:
setenv CLASSPATH .:/matlabroot/toolbox/javabuilder/jar/javabuilder.jar:
/mycomponent/mycomponent.jar
Like Windows, you can specify the class path directly on the Java command
line. To compile
usemyclass.java, type the following:
6-5
Przeglądanie stron 260
1 2 ... 256 257 258 259 260 261 262 263 264 265 266 ... 291 292

Komentarze do niniejszej Instrukcji

Brak uwag