Determine location of a java class loaded by Matlab

前端 未结 5 1789
无人及你
无人及你 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:29

    Assuming that an URLClassLoader is being used, you can get the file: URL of the class file like this:

    ProblemClass.class.getResource("ProblemClass.class")
    

提交回复
热议问题