Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

javarmpath

Remove entries from dynamic Java class path

Syntax

javarmpath(dpath1,...,dpathN)

Description

example

javarmpath(dpath1,...,dpathN) removes one or more files or folders from the current dynamic class path.

Examples

collapse all

Preserve the state of the dynamic path on your system by first adding folders to the path, and then removing one of these folders.

Create a variable that points to the MATLAB® examples folder. The path reflects the folder to your MATLAB installation.

expath = fullfile(matlabroot,'extern','examples')
expath =

C:\Program Files\MATLAB\R2012b\extern\examples

Add two folders to the path. The output displays these new folders on your existing path.

javaclasspath({...
   expath,...
   'http://www.example.com'})
javaclasspath('-dynamic')
		DYNAMIC JAVA PATH

	C:\Program Files\MATLAB\R2012b\extern\examples
	http://www.example.com

Remove one folder. The path no longer contains the extern\examples folder.

javarmpath(expath)
javaclasspath('-dynamic')
		DYNAMIC JAVA PATH

	http://www.example.com

Input Arguments

collapse all

Folders or JAR files, specified as strings or character vectors, to remove from path.

Data Types: char

Tips

  • This command clears the definitions of all Java® classes defined by files on the dynamic class path.

See Also

Functions

Introduced before R2006a

Was this topic helpful?