Which Java version did you install? Java 11 bundles Nashorn.
Best regards.
On 04/01/2023 12:09, Volodymyr Molodets wrote:
> Yes, that's what I did next.
>
> But after that I am unable to run even builtin standalone scripts on ZAP
> 2.12.0 and getting the same exception as the OP. PFB.[image: Screenshot
> 2023-01-04 140620.png]
>
> Here is the exception:
>
> *org.graalvm.polyglot.PolyglotException: TypeError: Access to host class
>
org.openqa.selenium.By is not allowed or does not
> exist.org.graalvm.polyglot.PolyglotException: TypeError: Access to host
> class
org.openqa.selenium.By is not allowed or does not exist.*
>
> Unfortunately, "Oracle Nashorn" is not offered as Script Engine when I try
> to add a new script.
>
> Any ideas how to overcome the access issue in the exception?
>
> [image: Screenshot 2023-01-04 140816.png]
>
> On Wednesday, January 4, 2023 at 1:44:45 PM UTC+2
psi...@gmail.com wrote:
>
>> You say you have "Java 8 Update 351 (64-bit) (8.0.3510.10)"
>> But as per the release notes
>> <
https://www.zaproxy.org/docs/desktop/releases/2.12.0/>, ZAP 2.12.0