# Building elasticsearch on windows 10

**URL:** <https://discuss.elastic.co/t/building-elasticsearch-on-windows-10/275021>\
**Category:** Elasticsearch\
**Tags:** windows\
**Created:** [June 5, 2021, 9:50am UTC](https://discuss.elastic.co/t/building-elasticsearch-on-windows-10/275021 "2021-06-05T09:50:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manishbansal8843](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manishbansal8843/32/89858_2.png) [@manishbansal8843](https://discuss.elastic.co/u/manishbansal8843)\
**Post date:** [June 5, 2021, 9:50am UTC](https://discuss.elastic.co/t/building-elasticsearch-on-windows-10/275021/1 "2021-06-05T09:50:51Z")

</div>

Hey All!  
I am trying to build elastic search on my local windows 10 box using jdk 15.  
As per ReadMe, i have executed gradlew localDistro. But i am getting following error.

```auto
  D:\OpenSource\elasticsearch>gradlew localDistro

> Configure project :modules:reindex
Disabling reindex-from-old tests because we can't get the pid file on windows

> Configure project :plugins:repository-hdfs
hdfsFixture unsupported, please set HADOOP_HOME and put HADOOP_HOME\bin in PATH

> Configure project :x-pack:plugin:searchable-snapshots:qa:hdfs
hdfsFixture unsupported, please set HADOOP_HOME and put HADOOP_HOME\bin in PATH
=======================================
Elasticsearch Build Hamster says Hello!
  Gradle Version : 7.0.2
  OS Info : Windows 10 10.0 (amd64)
  JDK Version : 15.0.3 (Zulu)
  JAVA_HOME : C:\Program Files\Zulu\zulu-15
  Random Testing Seed : 706B0F58213BD24E
  In FIPS 140 mode : false
=======================================

> Task :distribution:archives:buildWindows FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':distribution:archives:buildWindows'.
> Could not resolve all files for configuration ':distribution:archives:jdk_bundled_windows_x64'.
   > Failed to transform windows-16.0.1-x64.zip (adoptopenjdk_16:windows:16.0.1) to match attributes {artifactType=directory, jdk=true, org.gradle.status=integration}.
      > Could not download windows-16.0.1-x64.zip (adoptopenjdk_16:windows:16.0.1)
         > Could not get resource 'https://api.adoptopenjdk.net/v3/binary/version/jdk-16.0.1+9/windows/x64/jdk/hotspot/normal/adoptopenjdk'.
            > Could not GET 'https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1+9/OpenJDK16U-jdk_x64_windows_hotspot_16.0.1_9.zip'.
               > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 49s
430 actionable tasks: 5 executed, 425 up-to-date

```

I have tried adding [github.com](http://github.com) certificate as well in my jdk but still same error. Any idea?

---

<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:** [July 3, 2021, 9:51am UTC](https://discuss.elastic.co/t/building-elasticsearch-on-windows-10/275021/2 "2021-07-03T09:51:23Z")

</div>

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