Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7655569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:32:41+00:00 2026-05-31T12:32:41+00:00

How do I run use emma with a jar file. I downloaded emma.jar and

  • 0

How do I run use emma with a jar file. I downloaded emma.jar and another jar for testing purpose (MySQLConnector.jar). I placed both the jars in the same folder and tried to give this command

java -cp emma.jar emmarun -jar MySQLConnector.jar

. But I got an error saying

emmarun: failed to load Main-Class manifest attribute from

[C:\Documetings\Administrator\Desktop\jars\mysql-connector-java-5.0.8-bin.jar]

How do I solve this problem!!.. ANy other methods to test code coverage are also welcome!!

Thanks in advance!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T12:32:43+00:00Added an answer on May 31, 2026 at 12:32 pm

    We only can instrument executable jars. Which makes sense: emma needs something to run. And the connector library simply isn’t executable: it’s manifest file does not have the Main-Class attribute and I guess, the library does not contain a class with a main method too.

    Rethink what you really want to test. The coverage report will show which lines of code have been executed during a (test) run. It does not tell us, which lines are executable.

    Find yourself an executable jar and then you should see valid result.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following that I have to use to run my groovy class file ..\bin\groovy.bat
What event can i use to run code when a user visits another page
When I run this: use feature ':5.10'; $x=1; given ($x) { when(1) { say
How can you get the directory of the script that was run and use
I use to run $s =~ s/[^[:print:]]//g; on Perl to get rid of non
What GUI should use to run my JUnit tests, and how exactly do I
Is there any way to save data obtained during app-run and afterwards use it
Due to permissions on our network, the account I use to run Git Bash
I need to invoke a mapreduce job from java application. I use ToolRunner.run(new Validation(),
I use ajax to run MySQL query and echo json_encode result, so that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.