Matlab 2015a: error converting .m file to a .JAR file

조회 수: 3 (최근 30일)
Dr Ahmad Al Shami
Dr Ahmad Al Shami 2015년 6월 24일
답변: sharoon amin 2016년 6월 12일
When I try to convert Matlab (.m) code to (.JAR) file I get this error “Only Matlab functions and MEX files with a single entry point are acceptable as exported functions.” How can I overcome this error please?

답변 (2개)

Gitesh Nandre
Gitesh Nandre 2015년 6월 25일
  댓글 수: 1
You Wu
You Wu 2015년 7월 9일
I encountered the same the problem...However the link above doesn't seem to help. I was following the Matlab Compiler SDK tutorial and tried to convert varargexample.m they placed in matlabroot\toolbox\javabuilder\Examples\java_web_vararg_demo\mcode to a jar file...It didn't work, any ideas?
Thanks!

댓글을 달려면 로그인하십시오.


sharoon amin
sharoon amin 2016년 6월 12일
one way to overcome this problem is place your code in single function. That will act as your main function

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by