I am trying to call MATLAB functions from Jetbrains MPS. However, I am getting this error:
Native Library /usr/local/MATLAB/R2017a/bin/glnxa64/libnativemvm.so already loaded in another classloader java.lang.UnsatisfiedLinkError: Native Library /usr/local/MATLAB/R2017a/bin/glnxa64/libnativemvm.so already loaded in another classloader
The code I am using is :
final String[] options = {"-noFigureWindows", "-r", "-cd"};
final MatlabEngine startMatlab;
try {
startMatlab = MatlabEngine.startMatlab(options);
this.setMatLabReference(startMatlab);
} catch (Exception ex) {
System.out.println("Exception" + ex.toString());
}
Thanks in advance!