File Exchange

image thumbnail

Using MATLAB Builder for JAVA with Eclipse

version 1.0 (425 KB) by

Using MATLAB Builder for JAVA with Eclipse

2 Downloads

Updated

No License

These are my notes on how to get Eclise to work with MATLAB builder to JAVA.
I found myself referring to these notes many time so I am sharing them for others to use.

I'll be continuously correcting and updating this file so please feel free to send me your feedback on it

Comments and Ratings (2)

flutessa

I am having the exact same problem as liang, it runs from the command line, but not from Eclipse. I made the JAR using Java 1.7.0_11, but I am trying to run it with 1.7.0_75. Any solution?

liang

liang (view profile)

I tried to call MagicSquare from Eclipse.
Added the two jar in eclipse, but still get error message. I have MATLAB R2011a, and MCR 7.15 installed on my computer, but it still can't find the dll file in the runtime.

By the way, running it from command line is successful.

-------------
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to find the library mclmcrrt7_15.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.15.

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:1549)
at com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:727)
at com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:41)
at getmagic.main(getmagic.java:34)

MATLAB Release
MATLAB 7.5 (R2007b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video