This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Load Java Class Definitions

MATLAB® loads a Java® class automatically when your code first uses it, for example, when you call its constructor. To display a list of currently loaded Java classes, call the inmem function. This function returns a list of classes in the output argument J. For example:

[~,~,j] = inmem;
j
j = 
	
  2×1 cell array

'java.util.Date'
'com.mathworks.ide.desktop.MLDesktop'

MATLAB displays what is loaded on your system.

Note

When you call the which function on methods defined by Java classes, the function only displays the classes currently loaded into the MATLAB workspace. In contrast, which displays MATLAB classes, whether or not they are loaded.

See Also