New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"The system cannot find the path specified." when running bat file. #2274

Closed
LarryEitel opened this Issue Sep 21, 2012 · 14 comments

Comments

Projects
None yet
@LarryEitel

LarryEitel commented Sep 21, 2012

Windows 7
I also set %JAVA_HOME% to C:\Java\bin to avoid Program Files (Space) issue.

@uboness

This comment has been minimized.

Show comment
Hide comment
@uboness

uboness Sep 21, 2012

Contributor

Hi,

%JAVA_HOME% should probably point to "C:\Java" in your case.

Cheers,
Uri

Contributor

uboness commented Sep 21, 2012

Hi,

%JAVA_HOME% should probably point to "C:\Java" in your case.

Cheers,
Uri

@LarryEitel

This comment has been minimized.

Show comment
Hide comment
@LarryEitel

LarryEitel Sep 22, 2012

Thank you uboness for your suggestion. Still no joy.

My current config has:

C:\Program Files\Java\jdk1.7.0
and
C:\Program Files\Java\jre7

I tried the following:

set JAVA_HOME=C:\jre7\bin
set JAVA_HOME=C:\jre7

set JAVA_HOME=C:/jre7/bin
set JAVA_HOME=C:/jre7

set JAVA_HOME=/jre7/bin
set JAVA_HOME=/jre7

I also have a jdk1.7.0 directory but I am assuming elastic looks for runtime?

I am anxious to fire up elastic!! :)

LarryEitel commented Sep 22, 2012

Thank you uboness for your suggestion. Still no joy.

My current config has:

C:\Program Files\Java\jdk1.7.0
and
C:\Program Files\Java\jre7

I tried the following:

set JAVA_HOME=C:\jre7\bin
set JAVA_HOME=C:\jre7

set JAVA_HOME=C:/jre7/bin
set JAVA_HOME=C:/jre7

set JAVA_HOME=/jre7/bin
set JAVA_HOME=/jre7

I also have a jdk1.7.0 directory but I am assuming elastic looks for runtime?

I am anxious to fire up elastic!! :)

@uboness

This comment has been minimized.

Show comment
Hide comment
@uboness

uboness Sep 22, 2012

Contributor

so basically, the JAVA_HOME should point to the parent directory of the bin. In the examples above, it should point to:

"C:\Program Files\Java\jdk1.7.0"
or
"C:\Program Files\Java\jre7"

If you look at the elasticsearch.bat file. You can insert an echo just before the line where the program is executed and echo the whole line (it might show you where things go wrong):

echo "%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% %* -cp "%ES_CLASSPATH%" "org.elasticsearch.bootstrap.ElasticSearch"

after executing it, make sure that the paths (as they're echoed) indeed exist. More specifically, that one of the following exists:

"C:\ProgramFiles\Java\jdk1.7.0\bin\java.exe"
or
"C:\ProgramFiles\Java\jre7\bin\java.exe"

Contributor

uboness commented Sep 22, 2012

so basically, the JAVA_HOME should point to the parent directory of the bin. In the examples above, it should point to:

"C:\Program Files\Java\jdk1.7.0"
or
"C:\Program Files\Java\jre7"

If you look at the elasticsearch.bat file. You can insert an echo just before the line where the program is executed and echo the whole line (it might show you where things go wrong):

echo "%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% %* -cp "%ES_CLASSPATH%" "org.elasticsearch.bootstrap.ElasticSearch"

after executing it, make sure that the paths (as they're echoed) indeed exist. More specifically, that one of the following exists:

"C:\ProgramFiles\Java\jdk1.7.0\bin\java.exe"
or
"C:\ProgramFiles\Java\jre7\bin\java.exe"

@LarryEitel

This comment has been minimized.

Show comment
Hide comment
@LarryEitel

LarryEitel Sep 23, 2012

Working!!! Thank you for stating the obvious. :)

LarryEitel commented Sep 23, 2012

Working!!! Thank you for stating the obvious. :)

@uboness uboness closed this Sep 24, 2012

@phancongphuoc

This comment has been minimized.

Show comment
Hide comment
@phancongphuoc

phancongphuoc Apr 5, 2014

Thanks too, :)

phancongphuoc commented Apr 5, 2014

Thanks too, :)

@spangul

This comment has been minimized.

Show comment
Hide comment
@spangul

spangul Nov 6, 2014

Thanks a ton.

spangul commented Nov 6, 2014

Thanks a ton.

@dzolnjan

This comment has been minimized.

Show comment
Hide comment
@dzolnjan

dzolnjan Feb 24, 2015

If you got your elastic root folder prefixed with '!' you'll get same error.
E:!elasticsearch-1.4.4\elasticsearch-1.4.4\bin <--- wont work

dzolnjan commented Feb 24, 2015

If you got your elastic root folder prefixed with '!' you'll get same error.
E:!elasticsearch-1.4.4\elasticsearch-1.4.4\bin <--- wont work

@jaureguif

This comment has been minimized.

Show comment
Hide comment
@jaureguif

jaureguif Dec 28, 2015

thanks a bunch!

jaureguif commented Dec 28, 2015

thanks a bunch!

@Monepi

This comment has been minimized.

Show comment
Hide comment
@Monepi

Monepi Jan 5, 2016

Awesome!

Monepi commented Jan 5, 2016

Awesome!

@BelieveC

This comment has been minimized.

Show comment
Hide comment
@BelieveC

BelieveC Mar 27, 2016

Still getting "System cannot find specified path" error in windows 10 even after doing above stuff..
JAVA_HOME = C:\Program Files (x86)\Java\jre1.8.0_77

BelieveC commented Mar 27, 2016

Still getting "System cannot find specified path" error in windows 10 even after doing above stuff..
JAVA_HOME = C:\Program Files (x86)\Java\jre1.8.0_77

@mayankdevops

This comment has been minimized.

Show comment
Hide comment
@mayankdevops

mayankdevops Apr 19, 2016

Thanks this helped !!

mayankdevops commented Apr 19, 2016

Thanks this helped !!

@nycsri

This comment has been minimized.

Show comment
Hide comment
@nycsri

nycsri Sep 19, 2016

thanks !!!

nycsri commented Sep 19, 2016

thanks !!!

@sanchhoker

This comment has been minimized.

Show comment
Hide comment
@sanchhoker

sanchhoker commented Oct 25, 2016

Thanks!!

@venkat-subramani

This comment has been minimized.

Show comment
Hide comment
@venkat-subramani

venkat-subramani Sep 21, 2017

Still having the error on Windows 10.

JAVA_HOME is also there,
echo %JAVA_HOME% = C:\Program Files\Java\jdk1.8.0_144

Also I have set path variable for logstash LS_HOME

venkat-subramani commented Sep 21, 2017

Still having the error on Windows 10.

JAVA_HOME is also there,
echo %JAVA_HOME% = C:\Program Files\Java\jdk1.8.0_144

Also I have set path variable for logstash LS_HOME

bleskes pushed a commit to bleskes/elasticsearch that referenced this issue Nov 6, 2017

[ML] Preserve _meta on results index mapping update (#2274)
When mappings are updated for an index are updated most settings are
merged, but not _meta.  This change ensures that _meta is set when we
add per-job term mappings to our results index mappings.  In order to
keep the logic for updating mappings after upgrade working, we now
have to put ALL the mappings for our results along with the latest _meta
section when updating per-job term mappings.

Fixes #2265
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment