我正在尝试使用 Emma 检查我的应用程序的代码覆盖率并尝试像这样运行
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
但是我的类 ValidatorClient.java 有一个有效的 main 方法
public class ValidatorClient
{
...
public static void main (String[] args) throws Exception
{
....
有人可以对此有所了解吗?
提前致谢