m文件(使用matlab2014a)到jar文件的转换不起作用 [英] m file(using matlab2014a) to jar file conversion not working
问题描述
我使用了具有该功能的其他matlab,但仍无法成功完成jar文件.问题是我想将matlab函数转换为jar文件.我正在使用Matlab 2014a.并且安装的Java是jdk1.7.我从命令窗口中检查了java和javac.不幸的是,打包过程中出现错误
I have used different matlab which has the feature, but still not successful to complete the jar file.. The problem is I want to convert matlab function to jar file. I am using matlab 2014a. and the java installed is jdk1.7. I checked java and javac from command window windows.Unfortunately it is giving error during the packaging process
我要转换的函数是
function [a]= sjdhbuj()
a=6;
end
正在提供的日志文件中的错误
The error in the log file it is giving
ant:
<ant>
<mkdir dir="C:\Users\SPILAB2\Documents\MATLAB\sjdhbuj1\for_redistribution" />
<mkdir dir="C:\Users\SPILAB2\Documents\MATLAB\sjdhbuj1\for_testing" />
</ant>
mcc -W 'java:sjdhbuj1,Class1' -T link:lib -d C:\Users\SPILAB2\Documents\MATLAB\sjdhbuj1\for_testing -v C:\Users\SPILAB2\Documents\MATLAB\sjdhbuj.m class{Class1:C:\Users\SPILAB2\Documents\MATLAB\sjdhbuj.m}
Test checkout of feature 'Compiler' failed.
mcc failed.
任何解决问题的提示.
推荐答案
这是许可证问题.
尝试license('checkout','Compiler')
并检查其是否返回1.
Try license('checkout','Compiler')
and check if it returns 1.
这篇关于m文件(使用matlab2014a)到jar文件的转换不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!