From: Jeremy T. <jer...@gm...> - 2005-06-29 14:26:55
|
I guess to follow up on this to see if we can help, the most important=20 question would be: how are you running the applet? 98% of the time when we= =20 get these questions (although we haven't necessarily had any for an applet= =20 yet), it's that the instrumented classes either aren't in the runtime=20 classpath or are below the un-instrumented classes. Have you verified that= =20 the classes in your jar are the instrumented ones? Jeremy Thomerson On 6/29/05, Mark Doliner <Mar...@sa...> wrote:=20 >=20 > I'm not really sure how applets work... Normally the cobertura.ser file i= s=20 > updated only when the JVM exits. So if you access the applet from a web= =20 > browser, would you have to exit the web browser to cause the JVM to be=20 > killed? Also, applets run on the machine you access them with, not the=20 > machine they're served from, right? (So the cobertura.ser would be writte= n=20 > to the client's hard drive.) I have a feeling they're the same in this ca= se,=20 > but that might be something to look out for. >=20 > -Mark >=20 > > -----Original Message----- > > From: cob...@li... > > [mailto:cob...@li...] On > > Behalf Of Mick Francis > > Sent: Wednesday, June 29, 2005 10:06 AM > > To: 'cob...@li...' > > Subject: [Cobertura-devel] Use with Applets > > > > Sorry if this is a dumb question, but how can I get cobertura > > to work with a > > JApplet? > > It just doesn't seem to write to the cobertura.ser file. I've done the > > following: > > > > 1) Added: > > -Dnet.sourceforge.cobertura.datafile=3DC:/cobertura.ser > > to the java runtime params in the plugin control panel, > > and checked that > > System.getProperty("net.sourceforge.cobertura.datafile") agrees. > > > > 2) The Applet is in a signed jar along with all the other > > classes that are > > required. If > > I add a "public static main(String[] args) {...}" method, > > and run this > > from the command > > line, the cobertura.ser file is accessed as it should be. > > > > The Applet is able to create and write to files as part of its > > functionality, so this > > isn't the issue. > > > > 3) I've searched all my drives for cobertura.ser files, and > > there are no > > others. > > > > Any help very gratefully received! > > > > Thanks, > > > > Mick. > > > > > > > > > > > > > > > > > > > > This message has been scanned for viruses by MailController - > > www.MailController.altohiway.com<http://www.MailController.altohiway.co= m> > > > > > > ------------------------------------------------------- > > SF.Net <http://SF.Net> email is sponsored by: Discover Easy Linux=20 > Migration Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dcl= ick > > _______________________________________________ > > Cobertura-devel mailing list > > Cob...@li... > > https://lists.sourceforge.net/lists/listinfo/cobertura-devel > > >=20 >=20 > ------------------------------------------------------- > SF.Net <http://SF.Net> email is sponsored by: Discover Easy Linux=20 > Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&opclick > _______________________________________________ > Cobertura-devel mailing list > Cob...@li... > https://lists.sourceforge.net/lists/listinfo/cobertura-devel >=20 >=20 > |