Building a jar file in Matlab
17 次查看(过去 30 天)
显示 更早的评论
I'm wondering if there is a way in Matlab to automate process of creating a Jar file from a Matlab binary.
Thanks in advance for your answer, A
2 个评论
Kaustubha Govind
2012-1-24
Could you please explain what you mean by "MATLAB binary"? Did you mean a regular MATLAB (.m) file?
回答(3 个)
Titus Edelhofer
2012-1-25
Hi Ali,
just to make sure: you have an .exe compiled from MATLAB file and want to create a jar file from it? That's not possible. In Java you can call the .exe as an external process though.
To create a jar file in the sense of Builder JA (for Java) you will need to have the source code (.m file).
Titus
0 个评论
Ali
2012-1-25
1 个评论
Titus Edelhofer
2012-1-25
O.K., I understand. Then I guess the following is possible: you might write a simple .java file which contains only a few lines running the MATLAB code compiled into the jar file. Take any example from the doc for Builder JA ("Sample Java Applications").
This is not automatically done for you by MATLAB but should be not too difficult. Compile this .java file and you can run it on your Linux box.
Titus
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Java Package Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!