I'm trying to use the MatlabControl.java with the following code:
public static void main(String[] args) {
MatlabControl mc = new MatlabControl();
mc.eval(new String("x=5"));
}
but it throws the following exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.mathworks.jmi.NativeMatlab.PostMatlabRunnable(JZ)V
at com.mathworks.jmi.NativeMatlab.PostMatlabRunnable(Native Method)
at com.mathworks.jmi.NativeMatlab.postMatlabRunnable(NativeMatlab.java:521)
at com.mathworks.jmi.MatlabLooper.postMatlabRunnable(MatlabLooper.java:177)
at com.mathworks.jmi.Matlab.whenMatlabReady(Matlab.java:1609)
at matlabCon.MatlabControl.eval(MatlabControl.java:85)
at matlabCon.MatlabCon.main(MatlabCon.java:8)
I've saw this problem here too: call MATLAB in Java via MatlabControl.java
and followed the instructions - with no success. I've added all of the Jars I need.
can anyone help me?
thanks.