Determine location of a java class loaded by Matlab

前端 未结 5 1787
无人及你
无人及你 2020-12-04 00:40

When using java from Matlab, is there some way to figure out from where in matlab\'s java class path is a class being loaded? I\'m trying to diagnose a error caused by confl

5条回答
  •  独厮守ぢ
    2020-12-04 01:19

    Use the inmem function as follows:

    [M,X,J] = inmem
    

    This function returns the list of Java classes in the output argument J. (It also returns the names of all currently loaded M-files in M, and the names of all currently loaded MEX-files in X.)

    Here's a sample of output from the inmem function:

    [m,x,j] = inmem;
    

    MATLAB displays:

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

提交回复
热议问题