'The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt with JDK installed

I am trying to run KeplerGL on PyCharm to map some data and I am getting this error:

The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt. Please visit http://www.java.com for information on installing Java.

I have brew installed the JDK Java and "java -version" outputs the following:

openjdk version "17.0.2" 2022-01-18 OpenJDK Runtime Environment Homebrew (build 17.0.2+0) OpenJDK 64-Bit Server VM Homebrew (build 17.0.2+0, mixed mode, sharing)

What can I do to fix this issue? Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source