# Logstash install error in ubuntu

**URL:** <https://discuss.elastic.co/t/logstash-install-error-in-ubuntu/238987>\
**Category:** Logstash\
**Created:** [June 28, 2020, 5:34am UTC](https://discuss.elastic.co/t/logstash-install-error-in-ubuntu/238987 "2020-06-28T05:34:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Srini2](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Srini2](https://discuss.elastic.co/u/Srini2)\
**Post date:** [June 28, 2020, 5:43am UTC](https://discuss.elastic.co/t/logstash-install-error-in-ubuntu/238987/2 "2020-06-28T05:43:55Z")

</div>

UPDATE:  
I have installed OpenJDK8 as mentioned in [Logstash 7 install error Ubuntu 18.04](https://discuss.elastic.co/t/logstash-7-install-error-ubuntu-18-04/176917/2)  
Updated JAVACMD in /etc/logstash/startup.options as below.  
JAVACMD=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

Then getting this error.

```auto
sudo /usr/share/logstash/bin/system-install
Unrecognized option: --module-path
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unable to install system startup script for Logstash.

```

---

_[View the full topic](https://discuss.elastic.co/t/logstash-install-error-in-ubuntu/238987)._
