How to resolve 'Launching ServiceTest has encountered a problem' in EclEmma plugin in Eclipse IDE

693 Views Asked by At

While trying to use EclEMMA to generate code coverage.It started the program but threw issue - (Please have a look at the image attached - Image 1). enter image description here To replicate the issue I tried to run it on a small piece of code. I designed a simple JUNIT and tried to check the coverage. But in that case it didn't even start the program and giving me issue. (Please have a look at the image attached - Image 2) Image 1

image 2

1

There are 1 best solutions below

0
howlger On

It seems your Eclipse installation is broken. The second screenshot shows an unavailable or uninstalled Coverage view that is not the Eclipse built-in Coverage view (otherwise the view ID would start with org.eclipse. rather than com.). This could be due to the fact that some time ago EclEmma became an Eclipse project (which also affected the view IDs) and since then the Eclipse Java IDE packages are shipped with EclEmma as built-in feature.

Make sure the old EclEmma plug-in has been uninstalled, close the broken Coverage view and reopen it again: Window > Show View > Other...: Java > Coverage.