Jar file not working with MCR 2012b on Linux, but works fine with the full Matlab installation
Show older comments
A colleague of mine exported his Matlab code as a jar file on Linux. He setup a simple test program on that machine and everything ran smoothly. when I try to use that same jar on a Linux machine with just MCR 2012b, I get the error pasted below. If the jar file is build on a Mac, it will run just fine with only the MCR installed on another Mac. Could this be a bug in the Linux version of MCR?
Warning: The following error was caught while executing 'onCleanup' class destructor:
Invalid MEX-file '/home/elevine/.mcrCache8.0/Predic0/toolbox/optim/optim/private/activesetqp.mexa64': libmwoptimutil.so: cannot open shared object file: No such file or directory
[> In fmincon at 906
In arima.estimate at 840
In javamakefit at 32]
Error using throwQPexception (line 315)
An internal error from the QP solver was caught. Try re-running with options.Algorithm = 'interior-point'.
Error in /home/elevine/.mcrCache8.0/Predic0/toolbox/optim/optim/private/computeSearchDirSQP.p>computeSearchDirSQP (line 56)
Error in /home/elevine/.mcrCache8.0/Predic0/toolbox/optim/optim/sqpLineSearch.p>sqpLineSearch (line 278)
Error in fmincon (line 906)
Error in arima/estimate (line 840)
Error in javamakefit (line 32)
Caused by:
Invalid MEX-file '/home/elevine/.mcrCache8.0/Predic0/toolbox/optim/optim/private/activesetqp.mexa64': libmwoptimutil.so: cannot open shared object file: No such file or directory
... Matlab M-code Stack Trace ...
file /home/elevine/.mcrCache8.0/Predic0/toolbox/optim/optim/private/computeSearchDirSQP.p, name throwQPexception, line 315.
file /home/elevine/.mcrCache8.0/Predic0/toolbox/optim/optim/private/computeSearchDirSQP.p, name computeSearchDirSQP, line 56.
file /home/elevine/.mcrCache8.0/Predic0/toolbox/optim/optim/sqpLineSearch.p, name sqpLineSearch, line 278.
file /home/elevine/.mcrCache8.0/Predic0/toolbox/shared/optimlib/fmincon.m, name fmincon, line 906.
file /home/elevine/.mcrCache8.0/Predic0/toolbox/econ/econ/@arima/estimate.m, name estimate, line 840.
file /home/elevine/.mcrCache8.0/Predic0/home/jhj/MATLAB/javamakefit.m, name javamakefit, line 32.
com.mathworks.toolbox.javabuilder.MWException: An internal error from the QP solver was caught. Try re-running with options.Algorithm = 'interior-point'.
at com.mathworks.toolbox.javabuilder.internal.MWMCR.mclFeval(Native Method)
at com.mathworks.toolbox.javabuilder.internal.MWMCR.access$600(MWMCR.java:23)
at com.mathworks.toolbox.javabuilder.internal.MWMCR$6.mclFeval(MWMCR.java:833)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.mathworks.toolbox.javabuilder.internal.MWMCR$5.invoke(MWMCR.java:731)
at com.sun.proxy.$Proxy0.mclFeval(Unknown Source)
at com.mathworks.toolbox.javabuilder.internal.MWMCR.invoke(MWMCR.java:406)
at Prediction.Class1.javamakefit(Class1.java:573)
at Driver.main(Driver.java:21)
Exception in thread "main" java.lang.NullPointerException
at Driver.main(Driver.java:32)
Answers (0)
Categories
Find more on Get Started with MATLAB Compiler SDK in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!