Matlab Compiler Java Package is not working (Error during packaging)

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
The function which I want to convert is
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.
Any hint to solve the problem..

4 件のコメント

Harsheel
Harsheel 2016 年 7 月 15 日
do you have license for the MATLAB Compiler product?
>> license('test','Compiler')
>> license('checkout','Compiler')
Walter Roberson
Walter Roberson 2016 年 7 月 15 日
Converting to jar will also require MATLAB Compiler SDK.
Hirak
Hirak 2016 年 7 月 19 日
@Harsheel The lisense is ok it seems.... license('test','Compiler')
ans =
1
>> license('checkout','Compiler')
ans =
1
Harsheel
Harsheel 2016 年 7 月 21 日
Unfortunately, I am unsure what may be the issue. You may want to contact MathWorks Technical Support for further assistance.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Java Package Integration についてさらに検索

質問済み:

2016 年 7 月 14 日

コメント済み:

2016 年 7 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by