Use of JavaBuilder to Build Java-Matlab Related Application

Hi, I'm a a new user to Matlab. I'm trying to interface Matlab written function with Java. I'm using JBuilder for the same.
The problem is that I don't know how to execute programs using JBuilder. I've tried executing the examples given in JBuilder Application. But This is what I've done so far.
1. Created a Jar File of ObjectRef examples both .m files as one jar file.
2. I've included both the Jar files i.e. one created and another one is Javabuilder.jar into lib folder.
3. I've copied the same codes given in ObjectRefDemoJavaApp Folder into project.
Now when I'm trying to execute the project I'm getting following error::
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to find the library mclmcrrt713.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.13.
What am I supposed to do to get rid of this error ??

 Accepted Answer

Install the MCR on your target machine - you can locate the installer by typing 'mcrinstaller' at your MATLAB command prompt.

3 Comments

I've already installed MCR on my Desktop & also did the set path to $MCRROOT\v$VER\runtime\win32.
Still geting the error..
Is $MCRROOT\v$VER\runtime\win32 also present on java.library.path?
did that..
Now its working fine..
thanx :)

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!