Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

matlab builder for java

0 views
Skip to first unread message

federico

unread,
Sep 5, 2007, 9:42:06 AM9/5/07
to
hi everybody,
I have a problem with the magic square example. I followed
all step so I have getmagic.class. when I run the
application in matlab prompt all work (whit !), but if I run
the same instruction in system prompt I have the message below:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
no nativemcl76 in java.library.path
at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at
com.mathworks.toolbox.javabuilder.MWMCR.<clinit>(MWMCR.java:25)
at
com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:1566)
at
com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:26)
at getmagic.main(getmagic.java:34)

could you help me please?

tks

federico

federico

unread,
Sep 5, 2007, 9:42:33 AM9/5/07
to

Mark Jones

unread,
Sep 5, 2007, 10:22:34 AM9/5/07
to
Hi Federico,

Is this on your system with MATLAB, MATLAB Compiler, and Builder for
Java or on a target system that just has the MCR installed?

You can verify that the MCR works correctly by compiling a simple
function to an executable (using mcc -m) and then attempt to run that
executable from your DOS prompt. If that doesn't work correctly then
you can resolve that first and then attempt your Java example again.

Mark

0 new messages