I have downloaded and extracted elasticsearch and when I run the batch file "elasticsearch.bat' I am getting the following error.
"\Common was unexpected at this time."
Solved:
By editing line 46 of the 'bat' file
'%JAVA%' ==> '!JAVA!'
I also encountered the same issue while running the batch file "elasticsearch.bat" in windows 10. I set JAVA_HOME using below command and it worked for me.
set "JAVA_HOME=C:\Program Files\Java\your_jdk_version"
I placed SET "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191"
just under SET params='%*'
inside "bin\elasticsearch.bat"
and that made it work
@echo off setlocal enabledelayedexpansion setlocal enableextensions SET params='%*' SET "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_191" :loop ......
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With