# OpenMRS core Build failure

**URL:** <https://talk.openmrs.org/t/openmrs-core-build-failure/25233>\
**Category:** Uncategorized\
**Created:** [October 26, 2019, 3:34am UTC](https://talk.openmrs.org/t/openmrs-core-build-failure/25233 "2019-10-26T03:34:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![percyashu](https://talk.openmrs.org/letter_avatar/percyashu/32/5_5575768a8748004e209b776fc1b2916d.png) [@percyashu](https://talk.openmrs.org/u/percyashu)\
**Post date:** [October 26, 2019, 3:34am UTC](https://talk.openmrs.org/t/openmrs-core-build-failure/25233/1 "2019-10-26T03:34:00Z")

</div>

Hi, I am new to OpenMRS. I’ve been to trying to run mvn clean install command in my openMRS core directory and I keep getting Compilation failure. Link to Gist

> <https://gist.github.com/percyashu/bb8aec22ddf6d7a3167f333f52f39e8c>

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [October 26, 2019, 12:06pm UTC](https://talk.openmrs.org/t/openmrs-core-build-failure/25233/2 "2019-10-26T12:06:01Z")

</div>

Currently, OpenMRS requires JDK version 8 and is incompatible with version 9 or later. There’s some discussion of the steps needed to transition to JDK 9+ [in this thread](https://talk.openmrs.org/t/upgrading-from-jdk-8-to-openjdk-11/23181/2).

---

<div class="post-metadata">

**Author:** ![percyashu](https://talk.openmrs.org/letter_avatar/percyashu/32/5_5575768a8748004e209b776fc1b2916d.png) [@percyashu](https://talk.openmrs.org/u/percyashu)\
**Post date:** [October 27, 2019, 5:44am UTC](https://talk.openmrs.org/t/openmrs-core-build-failure/25233/3 "2019-10-27T05:44:57Z")

</div>

Thanks , the build was successful after changing the maven java compiler.

---

<div class="post-metadata">

**Author:** ![sharif](https://talk.openmrs.org/user_avatar/talk.openmrs.org/sharif/32/11982_2.png) [@sharif](https://talk.openmrs.org/u/sharif)\
**Post date:** [October 27, 2019, 11:30am UTC](https://talk.openmrs.org/t/openmrs-core-build-failure/25233/4 "2019-10-27T11:30:14Z")

</div>

@ibacher thanks for helping him out
