javarmpath
从动态 Java 类路径中删除条目
说明
javarmpath(
从当前的动态类路径中删除一个或多个文件或文件夹。dpath1,...,dpathN
)
示例
从动态路径中删除文件夹
保留动态路径在系统上的状态,方法是首先将文件夹添加到该路径中,然后删除其中一个文件夹。
创建一个指向 MATLAB® 示例文件夹的变量。路径反映 MATLAB 安装的文件夹。
expath = fullfile(matlabroot,'extern','examples')
expath = C:\Program Files\MATLAB\R2012b\extern\examples
将两个文件夹添加到路径中。输出显示现有路径中的这些新文件夹。
javaclasspath({... expath,... 'http://www.example.com'}) javaclasspath('-dynamic')
DYNAMIC JAVA PATH C:\Program Files\MATLAB\R2012b\extern\examples http://www.example.com
删除一个文件夹。路径不再包含 extern\examples
文件夹。
javarmpath(expath)
javaclasspath('-dynamic')
DYNAMIC JAVA PATH http://www.example.com
输入参数
dpath1,...,dpathN
— 文件夹或 JAR 文件
字符串 | 字符向量
要从路径中删除的文件夹或 JAR 文件,指定为字符串或字符向量。
数据类型: char
提示
javarmpath
清除动态类路径中的文件定义的所有 Java® 类的定义。
版本历史记录
在 R2006a 之前推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)