I have a jar name MyJar.jar which contains MyFinder.class .This class contains a non-static function named as myFind(). I want to call myFind() from a shell script.
I do already know how to call a particular class with a static main() in a jar file using :
java -jar MyJar.jar MyFinder.class
I need some command like above which can call a non static function
Main motive:
I have a script file and only one jar. In the script I want to make function calls based on particular time. I can code this inside inside jar itself. But if the requirement changes later I have to edit the jar. I dont want this to happen and I just want to edit the script file then