Hello Team,

I am using the offline instrumentation of classes. I have couple of queries. 
Please help to resolve them

1. I have my pre-instrumented classes in folder "instrumented". Now, While 
running java application I am using below command :
java -cp .:instrumented:jacoco-0.8.1/lib/jacocoagent.jar Main.class server 
config.yml

How can I give VM arguments to configure Jacoco properties such as output, 
address and port ?
I have tried -Djacoco-agent.output=tcpserver,address=localhost,port=6301 and 
also
-Djacoco-agent.output=tcpserver -Djacoco-agent.address=localhost 
-Djacoco-agent.port=6301

But while dumping the coverage using jacococli.jar it gives error:
Connection to 127.0.0.1(6301) refused.

2. Also what is class path also has same application jar. So there are my 
instrumented classes and also classes that are non-instrumented in jar without 
which my Main class gives NoClassFound Error. Placing instrumented class in 
class path along with Jacoco agent jar will capture the coverage ?

Please help to resolve these queries

-- 
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/105b1ba3-476a-4c46-bc6a-64cd3084d6a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to