Arvind Kumar Avinash
Arvind Kumar Avinash

Reputation: 79560

Unable to locate an executable at "/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin/policytool" (-1)

How to resolve the following problem?

$ policytool 
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin/policytool" (-1)
$

OS: Mac


Update:

It works for JDK1.8.0_181 but not for JDK15

Upvotes: 2

Views: 442

Answers (1)

Mario Varchmin
Mario Varchmin

Reputation: 3782

policytool was deprecated in JDK 9 and was removed in JDK 10: JDK 10 Release Notes. So, if you look in /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home/bin, the file should not be there, which explains the error.

You can use any text editor to edit policy files: Policy File Syntax

Upvotes: 3

Related Questions