On Tuesday, July 23, 2019 at 10:54:58 PM UTC+2, Lin Chen wrote:
>
> There was an old similar case.  I am having the same problem in 0.7.5.  I 
> am wondering how the 0.7.6 problem was solved.   
> I 
> have -javaagent:C:/Users/me/lib/org.jacoco.agent-0.7.5.201505241946.jar=[...] 
> in my in IntelliJ VM Options.   When I run I got:
>
> Failed to find Premain-Class manifest attribute in 
> C:/Users/me/lib/org.jacoco.agent-0.7.5.201505241946.jar
> Error occurred during initialization of VM
> agent library failed to init: instrument
>
>  Do I need add the runtime postfix as pointed out in that old case?  Is 
> org.jacoco.agent-NNN.jar and org.jacoco.agent-NNN-runtime.mar the same?
>

As explained in documentation on page 
https://www.jacoco.org/jacoco/trunk/doc/repo.html

and in https://groups.google.com/d/msg/jacoco/heRn1Hhvq14/FlXo-K27BgAJ

org.jacoco.agent-0.7.5.201505241946-runtime.jar

is the jar of agent with Premain-Class header and exactly this jar should 
be used for java parameter "-javaagent"

org.jacoco.agent-0.7.5.201505241946.jar

is not agent and has no Premain-Class header,
it is an API to obtain the agent as a resource.

This applies for all JaCoCo versions up to latest released as of today 
0.8.4, including 0.7.5 and 0.7.6

-- 
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/49919127-9b75-4811-b8fd-d6af9ce04a09%40googlegroups.com.

Reply via email to