Main Content

javarmpath

Remove entries from dynamic Java class path

Description

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

example

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

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

Version History

Introduced before R2006a