# Error when installing dhis2

**URL:** <https://community.dhis2.org/t/error-when-installing-dhis2/35997>\
**Category:** Support - Assistance technique\
**Created:** [16 May 2019 18:34 UTC](https://community.dhis2.org/t/error-when-installing-dhis2/35997 "2019-05-16T18:34:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amuramira](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@amuramira](https://community.dhis2.org/u/amuramira)\
**Post date:** [16 May 2019 18:34 UTC](https://community.dhis2.org/t/error-when-installing-dhis2/35997/1 "2019-05-16T18:34:25Z")

</div>

any guidance @Michael_Mwebaze I am experiencing the same issue.

Absolom

---

<div class="post-metadata">

**Author:** ![Michael\_Mwebaze](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@Michael\_Mwebaze](https://community.dhis2.org/u/Michael_Mwebaze)\
**Post date:** [17 May 2019 13:37 UTC](https://community.dhis2.org/t/error-when-installing-dhis2/35997/2 "2019-05-17T13:37:12Z")

</div>

Have you tried this? It worked for me.

> [@Error when installing dhis2 on tomcat 9 and postgres	10.4](https://community.dhis2.org/t/error-when-installing-dhis2-on-tomcat-9-and-postgres-10-4/34011/2):
>
> You can either add “–add-modules java.xml.bind” to JAVA\_OPTS environment variable or edit catalina.bat/catalina.sh to hard code it. But keep in mind that --add-modules does not work in java 8 if you intend to use both jvm versions.

---

<div class="post-metadata">

**Author:** ![amuramira](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@amuramira](https://community.dhis2.org/u/amuramira)\
**Post date:** [23 May 2019 12:35 UTC](https://community.dhis2.org/t/error-when-installing-dhis2/35997/3 "2019-05-23T12:35:00Z")

</div>

thank you @Michael_Mwebaze I just decided to downgrade the java version to JRE8. I had installed oracle java 11 and realized that the workaround you suggested was not being supported in the new version.
