The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Error getting MATLAB Javabuilder to work
Replies: 2   Last Post: Jun 24, 2012 11:46 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Firoz Anwar

Posts: 1
Registered: 4/25/12
Error getting MATLAB Javabuilder to work
Posted: Apr 25, 2012 8:14 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am new to MATLAB Javabuilder. I am trying to deploy a MATLAB program that I can use in my java program. I have followed the steps in the instruction video of MATLAB JavaBuilder JA. I can successfully deploy .prj file from MATLAB and create .jar file.
Then when i go to Eclipse and create a new project and class upto which things are fine. The problem starts when I am trying to include javabuilder in the Build Path of eclipse project. I could not select the javabuilder.jar to add in the Build path of Eclipse from the path /Application/MATLAB/ because I am on Mac so the application MATLAB_R2010b is not shown as a folder but rather an app icon.

But I could manage to add by deployed jar file path and MATLAB_Compiler_Runtime/v714/toolbox/javabuilder/jar in the path. So when ia write program in java I dont get any compile time error. But when I am running the program I get the following error message from Java program :
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to find the library libmwmclmcrrt.7.14.dylib, 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.14.

at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.get(
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.<clinit>(
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getProxyLibraryDir(
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.get(
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.<clinit>(
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getMCRRoot(
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ModuleDir.<clinit>(
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getModuleDir(
at com.mathworks.toolbox.javabuilder.internal.MWMCR.<clinit>(
at com.demo.DemoMCRFactory.newInstance(
at com.demo.DemoMCRFactory.newInstance(
at com.demo.MLTestClass.<init>(
at testmatlabdeploy.Main.main(

I have checked my matlabroot is fine and JAVA_HOME is set properly at MATLAB console but do i need to set anything else?

Please help me I am stuck in this for a long time and couldnt find anything on the web.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.