MATLAB JA Builder Failed with Mex File(2012b)

1 回表示 (過去 30 日間)
Yun Lin
Yun Lin 2014 年 1 月 17 日
コメント済み: Yun Lin 2014 年 1 月 18 日
Hi all,
I am working on an optimization problem by using the BONMIN solver, which is third-party toolbox for nonlinear program analysis. I worked out a matlab program involving the invocation of the BONMIN solver. In my case, I need to package this program into Java pakcage, thus, I choose to use matlab ja builder to do so. However, I got the following error message:
The file 'F:\Documents\MATLAB\OPTI Toolbox\Solvers\bonmin\bonminCplex.mexw64' appears to be a MEX-file. It shadows the MATLAB file 'F:\Documents\MATLAB\OPTI Toolbox\Solvers\bonmin\bonminCplex.m' but will not execute properly at runtime, as it does not export a function named 'mexFunction.'
Is there anyone who have any idea about this problem?
Thanks!
  2 件のコメント
Titus Edelhofer
Titus Edelhofer 2014 年 1 月 17 日
Hi,
does it run successfully in MATLAB, so the error "only" happens when compiling into a Java component?
Titus
Yun Lin
Yun Lin 2014 年 1 月 18 日
Thanks a lot for your comment. Yes, it works fine in matlab but error happens when matlab program are compiled to Java packcage. I have figured out the solution, which is to delete the "bonminCplex.mexw64" file. The reason is that such a file has some problem.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeJava Package Integration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by