Hi,
I've created a Java Package on Matlab. However, when try to call the created class from a java app, i get the error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to find the library mclmcrrt7_16.dll, required by MATLAB Builder JA, on java.library.path. This library is typically installed along with MATLAB or the MCR, its absence may indicate an issue with that installation or the current path configuration. The MCR version that this component is trying to use is: 7.16.
I've checked the path environment variable and this dll is located one of the paths – ie. c:\Program Files\MATLAB\R2011b\runtime\win64.
A couple of things though. When i compile the java package using javac version 1.7.0_02 I don't get this problem. But when i change the path environment variable to point at version 1.6.0_29, this problem crops up. (I have to build using version 1.6 as I'm using repast java which runs on 1.6 – it kicks up lots of errors when i try to run my app using JRE 7/JSE 1.7).
ALso, I'm running the java app on the same machine that matlab was installed on.
Any ideas?
Thanks,
Eoin
Best Answer