[ZAP 2.16.0] [Community Scripts] javascript script file did not displayed on Scripts Tab

112 views
Skip to first unread message

learn...@gmail.com

unread,
Jan 11, 2025, 3:12:44 PMJan 11
to ZAP Scripts
cs.png

Simon Bennetts

unread,
Jan 13, 2025, 4:33:06 AMJan 13
to ZAP Scripts
OK, and can clearly see a whole load of scripts that are not there :P
Can you explain what you actually did and what happenned?

Cheers,

Simon

On Saturday, 11 January 2025 at 20:12:44 UTC learn...@gmail.com wrote:
cs.png

thc202

unread,
Jan 13, 2025, 4:54:36 AMJan 13
to zaproxy...@googlegroups.com
And tell which Java version are you using.

Best regards.

learn...@gmail.com

unread,
Jan 13, 2025, 5:13:33 AMJan 13
to ZAP Scripts
I didn't make any special configurations: I just downloaded the latest version of Zap, installed all the extensions, and right after launching, I switched to the script tab.

learn...@gmail.com

unread,
Jan 13, 2025, 5:14:06 AMJan 13
to ZAP Scripts
PS C:\Users\admin> java -version
openjdk version "23" 2024-09-17
OpenJDK Runtime Environment (build 23+37-2369)
OpenJDK 64-Bit Server VM (build 23+37-2369, mixed mode, sharing)

learn...@gmail.com

unread,
Jan 14, 2025, 10:57:23 AMJan 14
to ZAP Scripts
I'm sorry for not reading the update blog post in detail. I think the following description should explain why the JavaScript community is not being loaded: it uses the Nashorn engine.

ZAP – ZAP 2.16.0

Simon Bennetts

unread,
Jan 14, 2025, 11:17:12 AMJan 14
to ZAP Scripts
Ah yes, that could be the problem.
We try to run "old" java script files with the new Graaljs engine but they may need converting.

Cheers,

Simon

learn...@gmail.com

unread,
Jan 14, 2025, 11:31:12 PMJan 14
to ZAP Scripts
Looking forward to the new version, Thanks.

Simon Bennetts

unread,
Jan 15, 2025, 4:18:27 AMJan 15
to ZAP Scripts
ZAP 2.16.0 was released last week :)
If your scripts need to be changed then I'm afraid you will need to change them.
We have no more changes planned in this area.

Cheers,

Simon

thc202

unread,
Jan 15, 2025, 6:09:49 AMJan 15
to zaproxy...@googlegroups.com
You should use a Java version lower than 22, the GraalVM JavaScript
add-on does not currently work with 22 and above.

Issue being tracked in https://github.com/zaproxy/zaproxy/issues/8477

Best regards.

learn...@gmail.com

unread,
Jan 16, 2025, 12:02:32 AMJan 16
to ZAP Scripts
I've switched to Java version 21.0.2, and it's working great now. Thank you!


PS C:\Users\admin> java -version
openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment (build 21.0.2+13-58)
OpenJDK 64-Bit Server VM (build 21.0.2+13-58, mixed mode, sharing)
Reply all
Reply to author
Forward
0 new messages