When trying to run on Linux I get The class "internal.optim" is undefined error
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Java Package Integration in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!