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

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?

Respuestas (2)

Gitesh Nandre
Gitesh Nandre el 25 de Jun. de 2015

0 votos

1 comentario

You Wu
You Wu el 9 de Jul. de 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!

Iniciar sesión para comentar.

sharoon amin
sharoon amin el 12 de Jun. de 2016

0 votos

one way to overcome this problem is place your code in single function. That will act as your main function

Categorías

Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 24 de Jun. de 2015

Respondida:

el 12 de Jun. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by