When trying to run on Linux I get The class "internal.optim" is undefined error
조회 수: 1 (최근 30일)
이전 댓글 표시
Using Matlab MCR Runtime version 8.2 (64 bit) on Linux, I get the following error when running a simple code (Note: it is fine under windows):
The class "internal.optim" is undefined. Perhaps Java is not running.
Error in internal.optim.presolve (line 212)
Error in ipqpcommon (line 30)
Error in quadprog (line 468)
Error in qpSolve (line 13)
The class "internal.optim" is undefined. Perhaps Java is not running. Exception in thread "main" java.lang.Exception: The class "internal.optim" is undefined. Perhaps Java is not running.
at test.MatlabTest.optimise(MatlabTest.java:86)
at test.MatlabTest.test(MatlabTest.java:142)
at test.MatlabTest.main(MatlabTest.java:148)
Caused by: com.mathworks.toolbox.javabuilder.MWException: The class "internal.optim" is undefined. Perhaps Java is not running.
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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 test.qpSolve(Optimisation.java:202)
at test.MatlabTest.optimise(MatlabTest.java:74)
... 2 more
Any ideas what causes this error?
Thanks.
Regards, Dipak
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Java Package Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!