Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
24
Добавлен:
09.02.2015
Размер:
407.04 Кб
Скачать

Is automatically run.

JAVAADDPATH DIRJAR ... adds directories or jar files

to the beginning of the current dynamic Java path.

Relative paths are converted to absolute paths.

JAVAADDPATH ... -END appends the specified directories.

Use the functional form of JAVAADDPATH, such as

JAVAADDPATH({'dirjar','dirjar',...}), when the directory

specification is stored in a string or cell array of

strings.

Example 1:

% Add a directory

javaaddpath D:/tools/javastuff

% 'clear java' was used to reload modified Java classes

Example 2:

% Add an internet jar file

javaaddpath http://www.example.com/my.jar

javaclasspath % View Java path

Example 3:

% Add the current working directory

javaaddpath(pwd)

See also javaclasspath, javarmpath, clear, java.

Reference page in Help browser

doc javaaddpath

<javaclasspath> - Get and set java path.

JAVACLASSPATH Get and set java path.

The java path consists of a static portion and a dynamic portion:

static -Specified on startup in classpath.txt. The static

java path cannot be modified during a MATLAB session.

The static java path offers better java class loading

performance than the dynamic java path.

dynamic -Specified through this function, java classes can

be reloaded using CLEAR JAVA.

MATLAB will always search the static path BEFORE the dynamic path.

Java classes on the static path should not have dependencies on

classes on the dynamic path otherwise runtime errors will result.

Whenever the dynamic path is changed, CLEAR JAVA is run.

JAVACLASSPATH displays the static and dynamic java path.

JAVACLASSPATH('-dynamic') displays the dynamic java path.

JAVACLASSPATH('-static') displays the static java path.

P = JAVACLASSPATH returns the dynamic java path.

P = JAVACLASSPATH('-static') returns only the static java path.

P = JAVACLASSPATH('-all') returns both the static and

dynamic java path.

JAVACLASSPATH(P) changes the dynamic java path to P, P is a

string or cell array of strings representing path entries.

Relative paths are converted to absolute paths.

JAVACLASSPATH(P1,P2) changes the dynamic java path to the

concatenation of the two paths P1 and P2. Input should

be a string or cell array of strings representing path

entries. Relative paths are converted to absolute paths.

JAVACLASSPATH('-v0') no class loading messages will be

displayed (default).

JAVACLASSPATH('-v1') prints messages when loading files

from the dynamic java path.

Examples:

javaclasspath('/home/javastuff/')

javaclasspath({'/home/javastuff/','/home/morestuff/jarfile.jar'})

javaclasspath('http://domain.com')

javaclasspath('http://some.domain.com/jarfile.jar')

See also javaaddpath, javarmpath, java, clear.

Reference page in Help browser

doc javaclasspath

<javarmpath> - Remove directory from dynamic java path.

JAVARMPATH Remove directory from dynamic java path.

JAVARMPATH DIRNAME removes the specified directory from the

dynamic java path.

JAVARMPATH DIR1 DIR2 DIR3 removes all the specified directories

from the dynamic java path.

Use the functional form of JAVARMPATH, such as

JAVARMPATH('dir1','dir2',...), when the directory specification

Соседние файлы в папке Библиотеки Matlab