# Cannot Start .\\elasticsearch.bat on windows

**URL:** https://discuss.elastic.co/t/cannot-start-elasticsearch-bat-on-windows/315037
**Category:** Elasticsearch
**Created:** [September 23, 2022, 3:59pm UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch-bat-on-windows/315037 "2022-09-23T15:59:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![miawu8](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@miawu8](https://discuss.elastic.co/u/miawu8)
#### Post date: [September 23, 2022, 3:59pm UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch-bat-on-windows/315037/1 "2022-09-23T15:59:50Z")

</div>

Last month I installed V8.3.2 on windows 2022, everything was ok, but today I stop and deleted V8.3.2, and downloaded 8.4.2 from the official website, use the same config, the system reported an error and could not start, the error is:

```auto
PS D:\Elastic\elasticsearch-01\bin> .\elasticsearch.bat
Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/cli/ProcessInfo
        at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:52)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.cli.ProcessInfo
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 1 more

```

how should I solve it? Is it because I deleted the old version?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [September 23, 2022, 9:49pm UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch-bat-on-windows/315037/2 "2022-09-23T21:49:23Z")

</div>

Try to go up 1 directory and run

`.\bin\elasticsearch.bat`

---

<div class="post-metadata">

### Author: ![miawu8](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@miawu8](https://discuss.elastic.co/u/miawu8)
#### Post date: [September 24, 2022, 4:36am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch-bat-on-windows/315037/3 "2022-09-24T04:36:42Z")

</div>

thank for your reply, but still same error:

```auto
PS D:\Elastic\elasticsearch-01> .\bin\elasticsearch.bat
Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/cli/ProcessInfo
        at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:52)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.cli.ProcessInfo
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 1 more

```

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [September 24, 2022, 5:04am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch-bat-on-windows/315037/4 "2022-09-24T05:04:15Z")

</div>

Did you just unzip or do the installer?

Did you follow [this](https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html#install-windows)?

Did you completely clean up or are you trying to upgrade?

Are trying to set your own JDK?

Are there environment variable set?

Is `ES_JAVA_HOME` still set somewhere? If you want to use the included JDK make sure that is not set.

Oh and @miawu8 Welcome to the community!

---

<div class="post-metadata">

### Author: ![miawu8](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@miawu8](https://discuss.elastic.co/u/miawu8)
#### Post date: [September 24, 2022, 5:17am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch-bat-on-windows/315037/5 "2022-09-24T05:17:02Z")

</div>

Thanks for your suggestion!  
I re-checked all the steps and I found the zip file 'elasticsearch-8.4.2-windows-x86\_64' use 'sha512' check fail 😱, I guess should be an error in the download process, after re-downloading and decompressing everything is ok.  
I made a low-level mistake and wasting your time, I'm so sory 😅 .  
Thanks again.

---

<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: [October 22, 2022, 5:17am UTC](https://discuss.elastic.co/t/cannot-start-elasticsearch-bat-on-windows/315037/6 "2022-10-22T05:17:07Z")

</div>

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