The cobertura jar should probably not be in the ant lib directory, but =
if it is, you probably need the jars that cobertura depends on there =
too. I would delete the cobertura jar myself.=20
-----Original Message-----
From: cobertura-devel-bounces@... =
[mailto:cobertura-devel-bounces@...] On Behalf Of abui
Sent: Friday, June 22, 2007 2:50 PM
To: cobertura-devel@...
Subject: Re: [Cobertura-devel] new to cobertura 1.9 =
...java.lang.NoClassDefFoundError
John, in my ant lib folder, there're only ant*.jar and cobertura.jar, no =
asm*.jar anywhere.
John W. Lewis wrote:
>=20
>=20
> Look in the lib directory of your Ant installation ($ANT_HOME/lib or=20
> %ANT_HOME%\lib). There may be an asm jar there.
>=20
> John
>=20
> -----Original Message-----
> From: cobertura-devel-bounces@...
> [mailto:cobertura-devel-bounces@...] On Behalf Of=20
> abui
> Sent: Friday, June 22, 2007 11:02 AM
> To: cobertura-devel@...
> Subject: Re: [Cobertura-devel] new to cobertura 1.9=20
> ...java.lang.NoClassDefFoundError
>=20
>=20
> Yes, everything is there. I can't see why it couldn't pick up these=20
> jars, unless ant build is referencing other directory and not the=20
> current working one. Is there a way to check this? Thanks John.
>=20
>=20
>=20
>=20
> John W. Lewis wrote:
>>=20
>>=20
>> That's ok. So, assuming you have cobertura installed at=20
>> lib/cobertura-1.9, there is another lib directory under there. Make=20
>> sure the asm jar is in that lib directory.
>>=20
>> -----Original Message-----
>> From: cobertura-devel-bounces@...
>> [mailto:cobertura-devel-bounces@...] On Behalf Of=20
>> abui
>> Sent: Wednesday, June 20, 2007 3:46 PM
>> To: cobertura-devel@...
>> Subject: Re: [Cobertura-devel] new to cobertura 1.9=20
>> ...java.lang.NoClassDefFoundError
>>=20
>>=20
>> My project is currently on C:\Documents and=20
>> Settings\abui\WTFHarness4, which has "lib" folder, "build" folder,=20
>> "dist" folder, and build.xml
>>=20
>> So I think it should have no problem looking up this working=20
>> directory, unless I'm wrong. It can refer to "build" folder so=20
>> there's a little thing messed up in here.
>>=20
>>=20
>>=20
>>=20
>>=20
>> John W. Lewis wrote:
>>>=20
>>>=20
>>> The cobertura.classpath does not look right. Are you sure you want=20
>>> the dir to be "lib/cobertura-1.9"?
>>>=20
>>> -----Original Message-----
>>> From: cobertura-devel-bounces@...
>>> [mailto:cobertura-devel-bounces@...] On Behalf Of=20
>>> abui
>>> Sent: Wednesday, June 20, 2007 12:24 PM
>>> To: cobertura-devel@...
>>> Subject: Re: [Cobertura-devel] new to cobertura 1.9=20
>>> ...java.lang.NoClassDefFoundError
>>>=20
>>>=20
>>> My apology for not replying sooner. Here is my current build.xml=20
>>> file
>>>=20
>>> http://www.nabble.com/file/p11217061/build.xml build.xml
>>>=20
>>> http://www.nabble.com/file/p11217061/buildconsole.jpeg
>>>=20
>>>=20
>>>=20
>>>=20
>>>=20
>>> John W. Lewis wrote:
>>>>=20
>>>>=20
>>>> It looks right to me. Unfortunately, I am going out of town for a=20
>>>> few days, so I can't look closer. If you send the whole build.xml=20
>>>> and the full console output, that would be helpful.
>>>>=20
>>>> -----Original Message-----
>>>> From: cobertura-devel-bounces@...
>>>> [mailto:cobertura-devel-bounces@...] On Behalf Of =
>>>> abui
>>>> Sent: Tuesday, June 12, 2007 6:49 PM
>>>> To: cobertura-devel@...
>>>> Subject: [Cobertura-devel] new to cobertura 1.9=20
>>>> ...java.land.NoClassDefFoundError
>>>>=20
>>>>=20
>>>> Hi, I'm new to this cool utility, and I have a hard time getting it =
>>>> to run.
>>>> I keep getting the error below at:
>>>>=20
>>>> compile-test:
>>>> Created dir: C:\Documents and
>>>> Settings\abui\WTFHarness4\build\test\results
>>>> cobertura-instrument:
>>>> java.lang.NoClassDefFoundError
>>>> BUILD FAILED (total time: 0 seconds)
>>>>=20
>>>>=20
>>>> My current junit test folder is inside my src package=20
>>>> "build/classes/com/wbst/wil/qa/junit" where all the test classes =
are.
>>>> Right now, I'm really confused. Here is my ant build.xml
>>>>=20
>>>> <path id=3D"cobertura.classpath">
>>>> <fileset dir=3D"C:\Documents and =
Settings\abui\Desktop\cobertura-1.9">
>>>> <include name=3D"cobertura.jar" />
>>>> <include name=3D"lib/**/*.jar" />
>>>> </fileset>
>>>> </path>
>>>>=20
>>>> <taskdef classpathref=3D"cobertura.classpath"
>>>> resource=3D"tasks.properties"/>
>>>>=20
>>>> <target name=3D"cobertura-instrument"
>>>> depends=3D"init,compile-test,-pre-test-run"> =20
>>>> <cobertura-instrument todir=3D"C:\Documents and=20
>>>> Settings\abui\Desktop\cobertura-1.9">
>>>> <fileset dir=3D"${build.classes.dir}">
>>>> <include name=3D"**/*.class" />
>>>> <exclude name=3D"**/*Test.class"/>
>>>> </fileset>
>>>> </cobertura-instrument>
>>>> </target> =20
>>>>=20
>>>> <target name=3D"cobertura-coverage-report"
>>>> depends=3D"init,compile,cobertura-instrument,compile-test">
>>>> <cobertura-report srcdir=3D"${src.dir}"
>>>> destdir=3D"${cobertura.report.dir}" format=3D"html"/>
>>>> <delete file=3D"Serialized" failonerror=3D"false"/>
>>>> <delete file=3D"cobertura.ser" failonerror=3D"false"/>
>>>> =20
>>>> <junit printsummary=3D"yes" fork=3D"yes" =
haltonfailure=3D"no">
>>>> <formatter type=3D"xml" usefile=3D"true"/>
>>>> <classpath location=3D"./cobertura" />
>>>> <classpath =
location=3D"build/classes/com/wbst/wil/qa/junit"
>>>> />
>>>> <classpath refid=3D"cobertura_classpath" />=20
>>>> <test todir=3D"./build/test/classes" name=3D"MyTest"/>
>>>> </junit>
>>>> =20
>>>> <junitreport todir=3D"./build/test/classes">
>>>> <fileset dir=3D"./build/test/classes">
>>>> <include name=3D"TEST-*.xml"/>
>>>> </fileset>
>>>> <report format=3D"frames" todir=3D"./reports/junit"/>
>>>> </junitreport>
>>>> <cobertura-report srcdir=3D"." =
destdir=3D"./reports/cobertura"/> =20
>>>> </target>
>>>>=20
>>>>=20
>>>> Thanks in advance.=20
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/new-to-cobertura-1.9-...-java.land.NoClassDef
>>>> F
>>>> o
>>>> u
>>>> ndError-tf3910982.html#a11089004 Sent from the cobertura-devel=20
>>>> mailing list archive at Nabble.com.
>>>>=20
>>>>=20
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> -
>>>> --- This SF.net email is sponsored by DB2 Express Download DB2=20
>>>> Express C - the FREE version of DB2 express and take control of=20
>>>> your XML. No limits. Just data. Click to get it now.
>>>> http://sourceforge.net/powerbar/db2/
>>>> _______________________________________________
>>>> Cobertura-devel mailing list
>>>> Cobertura-devel@...
>>>> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>>>>=20
>>>> -------------------------------------------------------------------
>>>> -
>>>> -
>>>> -
>>>> --- This SF.net email is sponsored by DB2 Express Download DB2=20
>>>> Express C - the FREE version of DB2 express and take control of=20
>>>> your XML. No limits. Just data. Click to get it now.
>>>> http://sourceforge.net/powerbar/db2/
>>>> _______________________________________________
>>>> Cobertura-devel mailing list
>>>> Cobertura-devel@...
>>>> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>>>>=20
>>>>=20
>>>=20
>>> --
>>> View this message in context:
>>> http://www.nabble.com/new-to-cobertura-1.9-...-java.land.NoClassDefF
>>> o
>>> u
>>> ndError-tf3910982.html#a11217061 Sent from the cobertura-devel=20
>>> mailing list archive at Nabble.com.
>>>=20
>>>=20
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> --- This SF.net email is sponsored by DB2 Express Download DB2=20
>>> Express C - the FREE version of DB2 express and take control of your =
>>> XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Cobertura-devel mailing list
>>> Cobertura-devel@...
>>> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>>>=20
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> --- This SF.net email is sponsored by DB2 Express Download DB2=20
>>> Express C - the FREE version of DB2 express and take control of your =
>>> XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Cobertura-devel mailing list
>>> Cobertura-devel@...
>>> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>>>=20
>>>=20
>>=20
>> --
>> View this message in context:
>> http://www.nabble.com/new-to-cobertura-1.9-...-java.land.NoClassDefFo
>> u ndError-tf3910982.html#a11220850 Sent from the cobertura-devel=20
>> mailing list archive at Nabble.com.
>>=20
>>=20
>> ---------------------------------------------------------------------
>> -
>> --- This SF.net email is sponsored by DB2 Express Download DB2=20
>> Express C - the FREE version of DB2 express and take control of your=20
>> XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Cobertura-devel mailing list
>> Cobertura-devel@...
>> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>>=20
>> ---------------------------------------------------------------------
>> -
>> --- This SF.net email is sponsored by DB2 Express Download DB2=20
>> Express C - the FREE version of DB2 express and take control of your=20
>> XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Cobertura-devel mailing list
>> Cobertura-devel@...
>> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>>=20
>>=20
>=20
> --
> View this message in context:
> http://www.nabble.com/new-to-cobertura-1.9-...-java.land.NoClassDefFou
> ndError-tf3910982.html#a11254001 Sent from the cobertura-devel mailing =
> list archive at Nabble.com.
>=20
>=20
> ----------------------------------------------------------------------
> --- This SF.net email is sponsored by DB2 Express Download DB2 Express =
> C - the FREE version of DB2 express and take control of your XML. No=20
> limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Cobertura-devel mailing list
> Cobertura-devel@...
> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>=20
> ----------------------------------------------------------------------
> --- This SF.net email is sponsored by DB2 Express Download DB2 Express =
> C - the FREE version of DB2 express and take control of your XML. No=20
> limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Cobertura-devel mailing list
> Cobertura-devel@...
> https://lists.sourceforge.net/lists/listinfo/cobertura-devel
>=20
>=20
--
View this message in context: =
http://www.nabble.com/new-to-cobertura-1.9-...-java.land.NoClassDefFoundE=
rror-tf3910982.html#a11258005
Sent from the cobertura-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------=
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cobertura-devel mailing list
Cobertura-devel@...
https://lists.sourceforge.net/lists/listinfo/cobertura-devel
|