# Java Client Installation - Database Connection Error

**URL:** <https://forum.metasfresh.org/t/java-client-installation-database-connection-error/1685>\
**Category:** Setup\
**Created:** [September 19, 2019, 11:23am UTC](https://forum.metasfresh.org/t/java-client-installation-database-connection-error/1685 "2019-09-19T11:23:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajan\_jain](https://forum.metasfresh.org/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@rajan\_jain](https://forum.metasfresh.org/u/rajan_jain)\
**Post date:** [September 19, 2019, 11:23am UTC](https://forum.metasfresh.org/t/java-client-installation-database-connection-error/1685/1 "2019-09-19T11:23:27Z")

</div>

Hello Guys,

I am trying to install java client on my windows system. There is no problem in establishing connection with server but when i try to connect to database, I get an error. Please refer to the screen shot attached.

I will really appreciate if somebody could help me with this.

 ![database_connection_error](https://forum.metasfresh.org/uploads/default/original/1X/a3e92ca78a00e1c608ae29eae6e5627416c6aa6f.png)  
Thanks

---

<div class="post-metadata">

**Author:** ![metasnw](https://forum.metasfresh.org/user_avatar/forum.metasfresh.org/metasnw/32/23_2.png) [@metasnw](https://forum.metasfresh.org/u/metasnw)\
**Post date:** [September 23, 2019, 9:39am UTC](https://forum.metasfresh.org/t/java-client-installation-database-connection-error/1685/2 "2019-09-23T09:39:03Z")

</div>

hi,

its important you use the same hostname to connect the swing client as the app server uses for himself as he tries to resolve it.

@julian.bischof would you have a comment as well ?

Norbert

---

<div class="post-metadata">

**Author:** ![rajan\_jain](https://forum.metasfresh.org/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@rajan\_jain](https://forum.metasfresh.org/u/rajan_jain)\
**Post date:** [September 23, 2019, 9:56am UTC](https://forum.metasfresh.org/t/java-client-installation-database-connection-error/1685/3 "2019-09-23T09:56:55Z")

</div>

Hi metasnw,

Thanks for your response, I am now able to connect. I am past that error but now I am encountering different error. After authorising userID and password. And clicking the check button under Default tab I encounter the error. Please refer my screenshots.  
Please let me know if you have any idea about this error.

[![before_error](https://forum.metasfresh.org/uploads/default/original/1X/2478cbbfe2a80573815c7db8a2be54eadc9552f0.png)  
before\_error.PNG1553×748 74.2 KB  
 ](https://forum.metasfresh.org/uploads/default/original/1X/2478cbbfe2a80573815c7db8a2be54eadc9552f0.png)

[![error](https://forum.metasfresh.org/uploads/default/original/1X/3fe88591f496b5fe1d976f69ffa4a622f3ecafcf.png)](https://forum.metasfresh.org/uploads/default/original/1X/3fe88591f496b5fe1d976f69ffa4a622f3ecafcf.png)
