• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jacoco.exec not getting generated after tomcat restart

 
Ranch Hand
Posts: 32
Netbeans IDE Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have added below lines to setenv.bat under %tomcat%/bin directory.

SET JACOCO="-javaagent:C:\jacoco-agent-jar\jacocoagent.jar=output=tcpserver,address=localhost,port=6300,destfile=C:\jacoco.exec,append=true,includes=*"

SET JAVA_OPTS= %JAVA_OPTS% %JACOCO%

And then restarted the tomcat server couple of times by changing output values etc, but no luck. I also checked after restart, whether Java_opts environment variable got set or not. But it got listed.

Thanks in advance. Please suggest on if anything I am missing here.
 
Water proof donuts! Eat them while reading this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic