I have issues with calling the java class from grails application.
Controller class:
class MyController{
def index() {
somepkg.MyJavaClass.method()
}
}
Java class:
package somepkg;
public class MyJavaClass{
public void method() {
// ... some logic here
}
}
The error:
No signature of method: static somepkg.MyJavaClass.method() is applicable for argument types: () values: [] Possible solutions: wait(), any(), find(), wait(long), each(groovy.lang.Closure), find(groovy.lang.Closure)