Ghidra

Hi,
I am trying to install Ghidra in Kali Linux, but during the installation it asks the following, and i have no idea what path to enter:

Enter path to JDK home directory (ENTER for dialog): 

type:

readlink -f $(which java)

you will get the path

This is the error i get after running the above command and finding the path:

Enter path to JDK home directory (ENTER for dialog): /usr/lib/jvm/java-11-openjdk-amd64/bin/java
Not a valid JDK home directory. Not a directory!

Enter path to JDK home directory (ENTER for dialog): /usr/lib/jvm/java-11-openjdk-amd64 
Not a valid JDK home directory. JDK is missing javac executable!