I need to call a java method from a shell script. I know we can use the command
java ClassName
to call the main method in it. But I need to call another method that is there in the class and pass an email to it.
Thanks Dennis. But can you give me an example of how to call a method inside a java class and pass, say a number argument, from command line
Class name: testClass
Method inside testClass to be called: testMethod()
argument: testNumber