Calling a java class in Matlab

1 次查看(过去 30 天)
michael
michael 2017-11-28
Hi,
When calling my java class, I'm getting " No main method with appropriate signature exists in Java class XXX" error
My java code is similar to this one (I've made some change so that IP port would be from user input).
Any suggestions how to solve it?
Executing "Hello World" don't provide me such error
Please suggest what could be done.
Matlab R14 SP3 Matlab code for calling the java class:
o=javaObject('XXX');
javaMethod('main','o', port, ip) <== for my problematic class
javaMethod('main','o') <== for the HelloWorld class

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call Java from MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by