Am trying to use Emma for checking the code coverage of my application and am trying to run like this
D:\bin>java -cp val.jar;emma.jar emmarun -r html -cp . com.val.ui.ValidatorClient
EMMA: no coverage data collected at runtime [all reports will be empty]
EMMA: writing [html] report to [D:\bin\coverage\index.html] ...
[EMMA v2.0, build 5312]
emmarun: [MAIN_METHOD_NOT_FOUND] application class [com.psft.sqlval.ui.Validator
Client] does not have a runnable public main() method
Exception in thread "main" com.vladium.emma.EMMARuntimeException: [MAIN_METHOD_N
OT_FOUND] application class [com.val.ui.ValidatorClient] does not have a
runnable public main() method
at com.vladium.emma.rt.AppRunner._run(AppRunner.java:497)
at com.vladium.emma.rt.AppRunner.run(AppRunner.java:97)
at com.vladium.emma.runCommand.run(runCommand.java:247)
at emmarun.main(emmarun.java:27)
Caused by: java.lang.ClassFormatError: Illegal local variable table length 18 in
method com.val.ui.ValidatorClient.main([Ljava/lang/String;)V
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at com.vladium.emma.rt.AppRunner._run(AppRunner.java:493)
... 3 more
But my class ValidatorClient.java has a valid main method
public class ValidatorClient
{
...
public static void main (String[] args) throws Exception
{
....
Can somebody throw some light on this?
Thanks in advance