Can't start logstash after installtion because java

I install this java version - java -version :

openjdk version "11.0.13" 2021-10-19.
OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.20.04).
OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.20.04, mixed mode).

which java
/usr/bin/java

export LS_JAVA_HOME=/usr/bin/java

bin/logstash
I get this error :
Using LS_JAVA_HOME defined java: /usr/bin/java
Invalid LS_JAVA_HOME, doesn't contain bin/java executable
Could not find java; set LS_JAVA_HOME or ensure java is in PATH

please your help...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.