Specify the JVM the ZAP proxy uses

1,604 views
Skip to first unread message

ne...@halloleo.hailmail.net

unread,
Feb 10, 2014, 8:32:25 PM2/10/14
to zaprox...@googlegroups.com
Hi there

How can I specify which JVM the ZAP.exe (in C:\Program Files (x86)\OWASP\Zed Attack Proxy\ZAP.exe) uses?

On my system it uses currently c:\jdk7\jre\bin\javaw.exe, but for reasons with the external firewall it has to use c:\jdk7\bin\javaw.exe.

Many thanks, Leo

Simon Bennetts

unread,
Feb 11, 2014, 4:06:20 AM2/11/14
to zaprox...@googlegroups.com
ZAP.exe uses http://launch4j.sourceforge.net/
I _think_ that just uses the standard windows PATH, so try changing that so that the JRE you need to use is higher than any of the other ones.

ne...@halloleo.hailmail.net

unread,
Feb 11, 2014, 10:46:41 PM2/11/14
to zaprox...@googlegroups.com
Mmmh, changing the PATH environment variable didn't work for me. From my research it is not easily possible to change the JVM ZAP.exe uses.

what command line (incl, needed -D parameters et al) would I need to use to start the ZAP app directly via a from a Java executable? I mean something like:

    c:\jdk7\bin\javaw.exe.-jar "c:\Program Files (x86)\OWASP\Zed Attack Proxy\zap.exe ....

Many thanks, Leo

Simon Bennetts

unread,
Feb 12, 2014, 5:00:17 AM2/12/14
to zaprox...@googlegroups.com
Just use the zap.bat file which is included with the release - thats what its there for :)
You can edit it if you want to specify a specific java exe

Cheers,

Simon

ne...@halloleo.hailmail.net

unread,
Feb 12, 2014, 11:08:32 PM2/12/14
to zaprox...@googlegroups.com
Hi Simon

That works. Thanks a lot.

Leo
Reply all
Reply to author
Forward
0 new messages