* jinterface : No Java compiler found

I installer the new elixir and Erlang versions with asdf:

elixir 1.12.3 and erlang 24.1.2

The instalation was a successful, but during the installation it was complained this message:

 * jinterface     : No Java compiler found

But I tried to see if the Java is installed with which:

 which java
/usr/bin/java

And shows java in the bin.
But if I ask the Java version I have not installed.

My question is necessary install Java for run the Erlang and tailwind css with the JIT compiler?