Where can I download zap-api-v2-8.jar?

482 views
Skip to first unread message

ellenxi...@gmail.com

unread,
Aug 15, 2016, 2:32:00 AM8/15/16
to OWASP ZAP User Group
Hello,

I find in an article <<Security Test Automation using Selenium and ZAP>>, it mentions that need to add zap-api-v2-8.jar. Could you please let me know where I can download it? Thank you.
ZAP version is 2.5.0.  I can find zap-2.5.0.jar but not sure if zap-api-v2-8.jar is the similar one as zap-2.5.0 or there should be zap-api-2.5.0.jar.

Thanks.

Ellen

Simon Bennetts

unread,
Aug 15, 2016, 3:51:54 AM8/15/16
to OWASP ZAP User Group
Hi Ellen,

If you look at the README file that is included with ZAP you'll see that it includes:

Java API
--------

The Java API is no longer packaged with this release.

You can download the latest version from:
https://github.com/zaproxy/zap-api-java/releases

It is also available on Maven Central:
- GroupId: 'org.zaproxy'
- ArtifactId: 'zap-clientapi'
- Version: '1.0.0'

Cheers,

Simon

ellenxi...@gmail.com

unread,
Aug 15, 2016, 5:48:47 AM8/15/16
to OWASP ZAP User Group
Thank you, Simon.

ext.pari...@senseforth.com

unread,
Jan 10, 2019, 5:47:00 AM1/10/19
to OWASP ZAP User Group
Hi Simon,

I could not able to download zap-api-v2-8.jar from the website that you have mentioned https://github.com/zaproxy/zap-api-java/releases ,Can you help me where can I download that jar and i downloaded  zap-api-1.6.0.jar from https://github.com/zaproxy/zap-api-java/releases.

I am got the error mentioned below:

Buildfile: /home/sudhakar/Documents/SecurityTestAutomation-master/ZAP/build.xml

BUILD FAILED
/home/sudhakar/Documents/SecurityTestAutomation-master/ZAP/build.xml:14: taskdef class org.zaproxy.clientapi.ant.AccessUrlTask cannot be found
 using the classloader AntClassLoader[]

Total time: 273 milliseconds

thc...@gmail.com

unread,
Jan 10, 2019, 5:52:01 AM1/10/19
to zaprox...@googlegroups.com
Hi.

You also need the ant JAR, it contains the ZAP Ant tasks.

Best regards.

On 10/01/2019 10:47, ext.pari...@senseforth.com wrote:
> Hi Simon,
>
> I could not able to download zap-api-v2-8.jar from the website that you
> have mentioned https://github.com/zaproxy/zap-api-java/releases
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fzaproxy%2Fzap-api-java%2Freleases&sa=D&sntz=1&usg=AFQjCNHee3vlLeVWB8b_W1sAskO5Ijw2fw> ,Can
> you help me where can I download that jar and i downloaded
> *zap-api-1.6.0.jar*
> <https://github.com/zaproxy/zap-api-java/releases/download/v1.6.0/zap-api-1.6.0.jar>
> from https://github.com/zaproxy/zap-api-java/releases
> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fzaproxy%2Fzap-api-java%2Freleases&sa=D&sntz=1&usg=AFQjCNHee3vlLeVWB8b_W1sAskO5Ijw2fw>
> .
>
> I am got the error mentioned below:
>
> Buildfile:
> /home/sudhakar/Documents/SecurityTestAutomation-master/ZAP/build.xml
>
> BUILD FAILED
> /home/sudhakar/Documents/SecurityTestAutomation-master/ZAP/build.xml:14:
> taskdef class org.zaproxy.clientapi.ant.AccessUrlTask cannot be found
> using the classloader AntClassLoader[]
>
> Total time: 273 milliseconds
>
>
>
>
> On Monday, August 15, 2016 at 1:21:54 PM UTC+5:30, Simon Bennetts wrote:
>>
>> Hi Ellen,
>>
>> If you look at the README file that is included with ZAP you'll see that
>> it includes:
>>
>> Java API
>> --------
>>
>> The Java API is no longer packaged with this release.
>>
>> You can download the latest version from:
>> https://github.com/zaproxy/zap-api-java/releases
>>
>> It is also available on Maven Central:
>> - GroupId: 'org.zaproxy'
>> - ArtifactId: 'zap-clientapi'
>> - Version: '1.0.0'
>>
>> Cheers,
>>
>> Simon
>>
>>
>> On Monday, 15 August 2016 08:32:00 UTC+2, ellenxi...@gmail.com

Parimaladevi K

unread,
Jan 10, 2019, 6:00:29 AM1/10/19
to zaprox...@googlegroups.com
Hi,
Thank you., I have added that jars too but still am getting the same error

--
You received this message because you are subscribed to the Google Groups "OWASP ZAP User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zaproxy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zaproxy-users/9d910ba5-36ec-a5d2-a32e-8bdbc164e67a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks,
Parimaladevi K

Parimaladevi K

unread,
Jan 10, 2019, 6:02:15 AM1/10/19
to zaprox...@googlegroups.com
--
Thanks,
Parimaladevi K
zap.png

thc...@gmail.com

unread,
Jan 10, 2019, 6:12:12 AM1/10/19
to zaprox...@googlegroups.com
You need to add them to Ant's classpath:
https://ant.apache.org/manual-1.9.x/using.html#external-tasks

if you don't want to add to Ant globally you can setup a <classpath> in
your build file and reference that (also shown in an earlier example in
the link above).

Best regards.

Parimaladevi K

unread,
Jan 10, 2019, 6:26:48 AM1/10/19
to zaprox...@googlegroups.com
Where can i get the classname for jar file

Here in build.xml we are using jar in place of classpath




For more options, visit https://groups.google.com/d/optout.


--
Thanks,
Parimaladevi K
zap2.png

thc...@gmail.com

unread,
Jan 10, 2019, 8:55:56 AM1/10/19
to zaprox...@googlegroups.com
Note that you need both jars (zap-api and ant) in the classpath (the
zap-api is needed at runtime).

For the classnames:
https://github.com/zaproxy/zap-api-java/blob/develop/subprojects/zap-clientapi-ant/src/test/resources/org/zaproxy/clientapi/ant/build.xml#L4

Best regards.
Reply all
Reply to author
Forward
0 new messages