# Build error using maven

**URL:** <https://community.konduit.ai/t/build-error-using-maven/940>\
**Category:** DL4J\
**Created:** [October 23, 2020, 4:44pm UTC](https://community.konduit.ai/t/build-error-using-maven/940 "2020-10-23T16:44:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![invincible](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@invincible](https://community.konduit.ai/u/invincible)\
**Post date:** [October 23, 2020, 4:44pm UTC](https://community.konduit.ai/t/build-error-using-maven/940/1 "2020-10-23T16:44:07Z")

</div>

After:

```auto
git clone https://github.com/eclipse/deeplearning4j-examples.git
cd dl4j-examples/
mvn clean install

```

[Full log](https://pastebin.com/8H39WtPu)  
[Image](https://user-images.githubusercontent.com/23639951/97030126-097e0280-1567-11eb-8c1a-639fa9e762ee.png)

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [October 23, 2020, 10:36pm UTC](https://community.konduit.ai/t/build-error-using-maven/940/2 "2020-10-23T22:36:08Z")

</div>

@invincible  
This appears to be your error:

```auto
unmappable character for encoding Cp1251

```

This has nothing to do with dl4j and something specific to your local environment.

Could you tell us more about this issue? From what I’m seeing, there’s nothing on the dl4j side we can really help you with here. That build works out of the box for any normal environment we’ve seen users work with.

---

<div class="post-metadata">

**Author:** ![invincible](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@invincible](https://community.konduit.ai/u/invincible)\
**Post date:** [October 25, 2020, 3:25pm UTC](https://community.konduit.ai/t/build-error-using-maven/940/3 "2020-10-25T15:25:13Z")

</div>

Not only me have this error:

> [@Build error with quickstart guide](https://community.konduit.ai/t/build-error-with-quickstart-guide/942):
>
> After: git clone https://github.com/eclipse/deeplearning4j-examples.git cd dl4j-examples/ mvn clean install I get a series of errors that look like this: [INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ dl4j-examples --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! [INFO] Compiling 118 source files to C:\Users\leotr\OneDrive\Documents\GitHub\deeplearning4j-example…

One month ago I build project in my enviroment and it was ok.  
But now I have this issue.

---

<div class="post-metadata">

**Author:** ![Saku](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/saku/32/1360_2.png) [@Saku](https://community.konduit.ai/u/Saku)\
**Post date:** [October 25, 2020, 4:33pm UTC](https://community.konduit.ai/t/build-error-using-maven/940/4 "2020-10-25T16:33:43Z")

</div>

I also was trying to familiarize myself with dl4j this weekend and faced exactly the same issue. I followed the quickstart guide and installed each newest versions of each piece of software, so I don’t think that my environment is anything special.

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [October 26, 2020, 4:38am UTC](https://community.konduit.ai/t/build-error-using-maven/940/5 "2020-10-26T04:38:37Z")

</div>

@Saku @invincible mind taking a look at: [Fix compilation errors/encoding issues by agibsonccc · Pull Request #1009 · eclipse/deeplearning4j-examples · GitHub](https://github.com/eclipse/deeplearning4j-examples/pull/1009)

and trying this branch?  
You can clone a specific branch like this:

> <https://stackoverflow.com/questions/1911109/how-do-i-clone-a-specific-git-branch>

My branch name in the PR is: [ag\_encoding\_compilation\_fixes](https://github.com/eclipse/deeplearning4j-examples/tree/ag_encoding_compilation_fixes)

Cloning would be:

```auto
git clone --single-branch --branch ag_encoding_compilation_fixes https://github.com/eclipse/deeplearning4j-examples

```

---

<div class="post-metadata">

**Author:** ![invincible](https://avatars.discourse-cdn.com/v4/letter/i/f1d935/32.png) [@invincible](https://community.konduit.ai/u/invincible)\
**Post date:** [October 26, 2020, 9:19am UTC](https://community.konduit.ai/t/build-error-using-maven/940/6 "2020-10-26T09:19:00Z")

</div>

Thank you!

Now it works for me.

---

<div class="post-metadata">

**Author:** ![Saku](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/saku/32/1360_2.png) [@Saku](https://community.konduit.ai/u/Saku)\
**Post date:** [October 27, 2020, 6:54pm UTC](https://community.konduit.ai/t/build-error-using-maven/940/7 "2020-10-27T18:54:47Z")

</div>

That helped me as well - thanks!

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [October 27, 2020, 10:50pm UTC](https://community.konduit.ai/t/build-error-using-maven/940/8 "2020-10-27T22:50:18Z")

</div>

Great I merged this to master. Thanks for verifying!
