Logstash not working on ubuntu 16.04

I have installed logstash 7.3 on ubuntu 16.04 also java version 11 is also installed but when I am trying to start logstash it gives me an error saying:
[ERROR] 2019-08-02 14:21:41.499 [main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (NameError) cannot load (ext) (org.jruby.ext.openssl.OpenSSL)