matlab和java混合编程,linux上MCR运行jar包报错
Afficher commentaires plus anciens
在linux服务器上安装了一个MCR环境,版本是MCR_R2014a_glnxa64,linux版本是64位的ubuntu14.05,服务器安装的java版本是1.7.在linux版本的matlab R2014a上打出jar包,jar包调用audioread方法去处理wav音频文件,结果就在audioread读取wav文件的时候报错,贴出报错信息:
... Matlab M-code Stack Trace ...
file /usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/mcr/toolbox/matlab/audiovideo/audioread.m, name audioread, line 127.
file /root/.mcrCache8.3/Respir0/RespiratoryP/respiratoryProcess3.m, name respiratoryProcess3, line 11.
com.mathworks.toolbox.javabuilder.MWException: Unexpected Standard exception from MEX file.
What() is:
..
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:601)
at com.mathworks.toolbox.javabuilder.internal.MWMCR$5.invoke(MWMCR.java:731)
at $Proxy80.mclFeval(Unknown Source)
at com.mathworks.toolbox.javabuilder.internal.MWMCR.invoke(MWMCR.java:406)
at RespiratoryProcess3.RespiratoryProcess3.respiratoryProcess3(RespiratoryProcess3.java:212)
at com.iflyzunhong.im.service.FileAnalysisService.analysisFile(FileAnalysisService.java:193)
at com.iflyzunhong.im.controller.DoctorController$1.run(DoctorController.java:102)
at java.lang.Thread.run(Thread.java:722)
19:03:42[INFO ]d-11 c.i.i.s.FileAnalysisService MWException!!!!!
19:03:42[INFO ]d-11 c.i.i.s.FileAnalysisService /root/IntelligentMedical/Audio/1585255_1493982215613/R_LUNG4.WAV
这是什么报错?看日志是mex文件的错误,这是c++的东西呀?有知道的解答一下吗?
Réponses (0)
Catégories
En savoir plus sur 启动和关闭 dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!