# Logstash 6.2.4 "x-pack" installation with custom JAVA\_HOME path

**URL:** <https://discuss.elastic.co/t/logstash-6-2-4-x-pack-installation-with-custom-java-home-path/139435>\
**Category:** Logstash\
**Created:** [July 10, 2018, 9:45pm UTC](https://discuss.elastic.co/t/logstash-6-2-4-x-pack-installation-with-custom-java-home-path/139435 "2018-07-10T21:45:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gt-28](https://avatars.discourse-cdn.com/v4/letter/g/94ad74/32.png) [@gt-28](https://discuss.elastic.co/u/gt-28)\
**Post date:** [July 10, 2018, 9:45pm UTC](https://discuss.elastic.co/t/logstash-6-2-4-x-pack-installation-with-custom-java-home-path/139435/1 "2018-07-10T21:45:35Z")

</div>

I want to install `x-pack` with custom `JAVA_HOME` path without getting conflicted with other applications.

If I install `Logstash-6.2.4` with custom java path and `x-pack` with application `JAVA_HOME` directory, am getting the following error.

// [2018-07-10T19:10:22,319][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"fb\_apache", :directory=\>"/usr/share/logstash/modules/fb\_apache/configuration"}  
[2018-07-10T19:10:22,325][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"netflow", :directory=\>"/usr/share/logstash/modules/netflow/configuration"}  
[2018-07-10T19:10:22,338][FATAL][logstash.runner] An unexpected error occurred! {:error=\>#\<ArgumentError: Setting "xpack.monitoring.enabled" hasn't been registered\>, :backtrace=\>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:37:in `get_setting'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:70:in`set\_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:89:in `block in merge'", "org/jruby/RubyHash.java:1343:in`each'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:89:in `merge'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:138:in`validate\_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:264:in `execute'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in`run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:219:in `run'", "/usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in`run'", "/usr/share/logstash/lib/bootstrap/environment.rb:67:in `'"]}  
[2018-07-10T19:10:22,343][ERROR][org.logstash.Logstash] java.lang.IllegalStateException: org.jruby.exceptions.RaiseException: (SystemExit) exit

To follow on this, I've also observed that when I do "yum remove" & re-install the Logstash am not seeing this error.

Is there a way that I can install `x-pack` without setting the `JAVA_HOME` path?

---

<div class="post-metadata">

**Author:** ![gt-28](https://avatars.discourse-cdn.com/v4/letter/g/94ad74/32.png) [@gt-28](https://discuss.elastic.co/u/gt-28)\
**Post date:** [July 24, 2018, 3:18pm UTC](https://discuss.elastic.co/t/logstash-6-2-4-x-pack-installation-with-custom-java-home-path/139435/2 "2018-07-24T15:18:44Z")

</div>

@magnusbaeck can I get some input on this topic?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 21, 2018, 3:18pm UTC](https://discuss.elastic.co/t/logstash-6-2-4-x-pack-installation-with-custom-java-home-path/139435/3 "2018-08-21T15:18:59Z")

</div>

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