zak100 Posted March 9, 2020 Share Posted March 9, 2020 I want to use cobertura for coverage. I followed the following link: https://electric-cloud.com/plugins/directory/p/cobertura/ That link provides a EC-Cobertura.jar file through download. I think it creates a parameter for passing arguments to cobertura. I am trying to run EC-Cobertura.jar but its giving me error: Quote :~/cobertura$ ls -l EC-Cobertura.jar -rw-rw-r-- 1 zulfi zulfi 165174 Mar 8 17:53 EC-Cobertura.jar :~/cobertura$ java -jar EC-Cobertura.jar no main manifest attribute, in EC-Cobertura.jar :~/cobertura$ sudo apt-get install binfmt-support [sudo] password for zulfi: Reading package lists... Done Building dependency tree Reading state information... Done binfmt-support is already the newest version (2.1.8-2). binfmt-support set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 258 not upgraded. ~/cobertura$ ./EC-Cobertura.jar bash: ./EC-Cobertura.jar: Permission denied :~/cobertura$ chmod a+rx EC-Cobertura.jar :~/cobertura$ ./EC-Cobertura.jar no main manifest attribute, in /home/zulfi/cobertura/EC-Cobertura.jar :~/cobertura$ I have already downloaded the cobertura and its installed on my ubuntu 18.04. Quote :~$ whereis cobertura-instrument cobertura-instrument: /usr/bin/cobertura-instrument /usr/share/man/man1/cobertura-instrument.1.gz :~$ And it has the same version as the tar file provides whose link is : https://sourceforge.net/projects/cobertura/ provided in the link of the associated help button page: Quote :~$ cobertura-instrument -version Cobertura 2.1.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [INFO] Cobertura: Saved information on 0 classes. [INFO] Cobertura: Saved information on 0 classes. :~$ But the help file does not say anything about the jar file. I still don't know how to execute the jar file and how to display the form shown on the link: http://downloads.electric-cloud.com/plugins/EC-Cobertura/EC-Cobertura_help.xhtml Somebody please guide me how to display the form? What is the purpose of EC-Cobertura.jar in this connection. Zulfi. Link to comment Share on other sites More sharing options...
Ghideon Posted March 9, 2020 Share Posted March 9, 2020 (edited) The error 31 minutes ago, zak100 said: no main manifest attribute Means there is no main class stated in the jar file. Have you aquired the software from a reliable official source? Is it supposed to be executed from command line? For specific questions about Cobertura maybe you get the best and quickest answer from the Cobertura community? Edited March 9, 2020 by Ghideon Spelling Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now