javaclasspath
ReturnJavaclass path or specify dynamic path
Syntax
javaclasspath
javaclasspath('-dynamic')
javaclasspath('-static')
dpath = javaclasspath
spath = javaclasspath('-static')
jpath = javaclasspath('-all')
javaclasspath(dpath)
javaclasspath(dpath1,dpath2)
javaclasspath(statusmsg)
Description
javaclasspath('-dynamic')
displays the dynamic path.
javaclasspath('-static')
displays the static path.
returns the static path,spath
= javaclasspath('-static')spath
.
returns the entire path,jpath
= javaclasspath('-all')jpath
. The returned cell array contains first the static segment of the path, and then the dynamic segment.
javaclasspath(
changes the dynamic path todpath
)dpath
. Use this syntax to reload Java classes that you are actively developing and debugging.
javaclasspath(
changes the dynamic path to the concatenation of pathsdpath1,dpath2
)dpath1,dpath2
.
Examples
Input Arguments
Output Arguments
More About
Tips
不要把Java类的静态路径哈ve dependencies on classes on the dynamic path. Such dependencies produce run-time errors.
To clear the definitions of all Java classes defined by files on the dynamic class path, call the
clear
command.Adding an entry to the dynamic path when it is already specified on the static path produces a warning.