I have switched to the newest JDK 7 and I having a problem of running of emma code coverage using ant. It throws the following error:
emma:
[emmajava] EMMA: no coverage data collected at runtime [all reports will be empty]
[emmajava] [EMMA v2.0, build 5312]
[emmajava] emmarun: [MAIN_METHOD_NOT_FOUND] application class does not have a runnable public main() method
[emmajava] Exception in thread "main" com.vladium.emma.EMMARuntimeException: [MAIN_METHOD_NOT_FOUND] application class does not have a runnable public main() method
[emmajava] at com.vladium.emma.rt.AppRunner._run(AppRunner.java:497)
[emmajava] at com.vladium.emma.rt.AppRunner.run(AppRunner.java:97)
[emmajava] at com.vladium.emma.runCommand.run(runCommand.java:247)
[emmajava] at emmarun.main(emmarun.java:27)
[emmajava] Caused by: java.lang.ClassFormatError: Illegal local variable table length 5 in method <init>()V
[emmajava] at java.lang.Class.getDeclaredMethods0(Native Method)
[emmajava] at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
[emmajava] at java.lang.Class.getMethod0(Unknown Source)
[emmajava] at java.lang.Class.getMethod(Unknown Source)
[emmajava] at com.vladium.emma.rt.AppRunner._run(AppRunner.java:493)
[emmajava] ... 3 more
I have read this question about the problem for resolving this error. But I cant update emma plugin due to following error.
No repository found at http://download.eclipselab.org/eclemma/beta/2.0.0/update/.
No repository found at http://download.eclipselab.org/eclemma/beta/2.0.0/update/.
How can I resolve this error?
How can I run emma code coverage in JDK 1.7?
Can anyone help me?