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

3 vues (au cours des 30 derniers jours)
Dr Ahmad Al Shami
Dr Ahmad Al Shami le 24 Juin 2015
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?

Réponses (2)

Gitesh Nandre
Gitesh Nandre le 25 Juin 2015
  1 commentaire
You Wu
You Wu le 9 Juil 2015
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!

Connectez-vous pour commenter.


sharoon amin
sharoon amin le 12 Juin 2016
one way to overcome this problem is place your code in single function. That will act as your main function

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by