Calling a java class in Matlab

1 view (last 30 days)
michael
michael on 28 Nov 2017
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

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!