Hi Ravi,

this is not the agent you are using (org.jacoco.agent-0.8.2.jar is an API to 
provide the agent as a resource). In the manual download the agent is

        lib/jacocoagent.jar

If you’re using Maven the agent’s coordinates are:

        groupId: org.jacoco
        artifactId: org.jacoco.agent
        classifier: runtime

Regards,
-marc


> On 12. Oct 2018, at 19:21, [email protected] wrote:
> 
> On Monday, October 1, 2018 at 2:42:34 AM UTC-6, [email protected] 
> <http://gmail.com/> wrote:
>> Hi All,
>> 
>> I am using docker to run my application which is spring boot restful 
>> webservice.
>> 
>> Can i use jacoco to fetch report after manual/automation test finish to 
>> check how much code we are hitting via QA team.
>> 
>> I started docker container via passing 
>> JAVA_OPTS=-javaagent:/opt/jacoco/lib/jacocoagent.jar=output=tcpserver,address=*,port=6300
>>  . 
>> 
>> and i can connect to via jacococli to get dump 
>> 
>> java -jar /opt/jacoco/lib/jacococli.jar dump --address localhost --destfile 
>> /tmp/jacoco.exec
>> 
>> now geting report out of dump file i need to pass classfile also but hence i 
>> am running images how i can pass class files.
>> 
>> If my question is not clear let me know i will try to put it in other way i 
>> need to resolve same on high priority, Thanks.
> 
> Hi, I am using the following command to start the service with offline 
> instrumented code. Seeing error:
> Caused by: java.lang.NoClassDefFoundError: 
> org/jacoco/agent/rt/internal_773e439/Offline
> 
> 
> Command am using is : java  -cp  org.jacoco.agent-0.8.2.jar  -jar 
> target/demo-0.0.1-SNAPSHOT.jar
> 
> Please help me what could be the issue here.
> 
> Thanks
> Ravi
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/30ee9c75-a51c-48ac-a0bc-02c88091e2c0%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/30ee9c75-a51c-48ac-a0bc-02c88091e2c0%40googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/1B1697E4-B95A-40ED-A747-2F215529D3F5%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to