Did you find any solution to the problem?

I was able to find a problem but don't know the solution. You can activate the 
javaagent with javaws by adding it via the -J parameter. For example:

javaws -J-javaagent:jacoco-runtime.jar=destfile=coverage.exec,jmx=true

This will activate JMX as well. After launching connect with JConsole to the 
application and you will see the jacoco leaf in the JMX tree. From here it is 
possible to generate a dump, but for me I retrieve an access denied exception:

MBeans > org.jacoco > Runtime > Operations > dump

"Problem invoking dump: java.security.AccessControlException: access denie 
("java.io.FilePermission" "coverage.exec" "write")

The file is created, but cannot bo written, although the JNLP file contains
<security>
  <all-permissions/>
</security>

Any new idea is highly appreciated.

References to the JaCoCo issue tracker:
https://github.com/jacoco/eclemma/issues/43
https://github.com/jacoco/eclemma/issues/60

Thanks,
Timo

Am Samstag, 24. August 2013 14:47:54 UTC+2 schrieb [email protected]:
> Hi,
> 
> My application uses webstart based approach where it downloads the jars from 
> the server.
> i dont see any example how to get the code coverage report for the webstart 
> applications.
> 
> when i manually pull all the related jars into the local directory and run 
> the application with jacoco agent, im perfectly getting the report.
> But for the QA people, i can't give al the jars. they want to test the 
> product as it is and get the code coverage report for their automated test 
> cases.
> 
> Could you please help.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to