Check you environment variables. You prolly have a JAVA_OPTS, which should be LS_JAVA_OPTS. Look in the logstash.bat file what it sets. And if your environment has JAVA_OPTS set remove it.
ALso i get this error sometime..Searched on forum about this and found this - https://github.com/elastic/logstash/issues/5357....It look like some bat file is not accepting the path variable set with (x86) version..
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.