Documentation

This is machine translation

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

javarmpath

Remove entries from dynamic Java class path

Syntax

  • javarmpath(dpath1,...,dpathN)
    example

Description

example

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

Examples

collapse all

Remove Folder from Dynamic Path

To preserve the state of the dynamic path on your system, this example first adds folders to the path, then removes one of these folders.

Create a variable that points to the MATLAB® examples folder.

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

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

The path reflects the folder to your MATLAB installation.

Add two folders to the path.

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

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

The output displays these new folders on your existing path.

Remove one folder.

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

	http://www.example.com

The path no longer contains the examples folder.

Input Arguments

collapse all

dpath1,...,dpathN — Folders or JAR filescharacter vector

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

Data Types: char

More About

collapse all

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?