Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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/MATLAB_R2010b.app/toolbox/javabuilder/jar/ 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(MCRConfiguration.java:167)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ProxyLibraryDir.<clinit>(MCRConfiguration.java:173)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getProxyLibraryDir(MCRConfiguration.java:178)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.get(MCRConfiguration.java:77)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$MCRRoot.<clinit>(MCRConfiguration.java:87)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getMCRRoot(MCRConfiguration.java:92)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration$ModuleDir.<clinit>(MCRConfiguration.java:66)
at com.mathworks.toolbox.javabuilder.internal.MCRConfiguration.getModuleDir(MCRConfiguration.java:71)
at com.mathworks.toolbox.javabuilder.internal.MWMCR.<clinit>(MWMCR.java:1553)
at com.demo.DemoMCRFactory.newInstance(DemoMCRFactory.java:49)
at com.demo.DemoMCRFactory.newInstance(DemoMCRFactory.java:60)
at com.demo.MLTestClass.<init>(MLTestClass.java:63)
at testmatlabdeploy.Main.main(Main.java:26)


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.

Thanks




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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.