# OpenMRS Standalone doesn't run

**URL:** <https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212>\
**Category:** Ask OpenMRS\
**Created:** [May 14, 2019, 1:03pm UTC](https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212 "2019-05-14T13:03:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![raspbewwies](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raspbewwies/32/9552_2.png) [@raspbewwies](https://talk.openmrs.org/u/raspbewwies)\
**Post date:** [May 14, 2019, 1:03pm UTC](https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212/1 "2019-05-14T13:03:47Z")

</div>

OpenMRS Reference Standalone

I’m almost a complete newbie to cmd, so this might be obvious. I have downloaded all the prerequisites and have been struggling to run OpenMRS. I get up to unzipping the download folder and the openmrs-standalone doesn’t run when opened with Java. After checking the documentation, it was clear that I couldn’t run it on java 1.8 (my version) without going through cmd, so I tried their solution on cmd - however I keep coming up with the error “the system cannot find the path specified”. For reference, here’s the code I used from the documentation (modified for my jdk): c:\Program Files\java\jdk-12.1.0\bin\java.exe -jar openmrs-standalone.jar

I tried to see if defining the directory to the openmrs file would work - this was the same. Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![dkayiwa](https://talk.openmrs.org/user_avatar/talk.openmrs.org/dkayiwa/32/179_2.png) [@dkayiwa](https://talk.openmrs.org/u/dkayiwa)\
**Post date:** [May 14, 2019, 1:14pm UTC](https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212/2 "2019-05-14T13:14:00Z")

</div>

Use Java 8 because we do not yet support Java 12

@mozzy @ruhanga this is why i suggested exploring support of newer versions for Java, to see how much effort would be required to do it in a backwards compatible way.

---

<div class="post-metadata">

**Author:** ![ruhanga](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ruhanga/32/8318_2.png) [@ruhanga](https://talk.openmrs.org/u/ruhanga)\
**Post date:** [May 14, 2019, 1:22pm UTC](https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212/3 "2019-05-14T13:22:31Z")

</div>

Thank you @dkayiwa, there is a [ticket in progress](https://issues.openmrs.org/browse/TRUNK-5496) that captures this use case.

cc @irenyak1

---

<div class="post-metadata">

**Author:** ![irenyak1](https://talk.openmrs.org/user_avatar/talk.openmrs.org/irenyak1/32/6339_2.png) [@irenyak1](https://talk.openmrs.org/u/irenyak1)\
**Post date:** [May 14, 2019, 1:34pm UTC](https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212/4 "2019-05-14T13:34:42Z")

</div>

Thank you @dkayiwa and @ruhanga. Been trying out with openjdk 12 but all in vain and yet with Java 8 it compiles so easily.

FYI @mozzy

---

<div class="post-metadata">

**Author:** ![raspbewwies](https://talk.openmrs.org/user_avatar/talk.openmrs.org/raspbewwies/32/9552_2.png) [@raspbewwies](https://talk.openmrs.org/u/raspbewwies)\
**Post date:** [May 14, 2019, 4:39pm UTC](https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212/5 "2019-05-14T16:39:31Z")

</div>

Thanks for the reply, I’ve discarded Java 12 and downloaded Java 8. I’m still facing the same error - it didn’t open via GUI, so I tried to open via cmd with pretty much the same code but I keep having the same error. Any further tips?

---

<div class="post-metadata">

**Author:** ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)\
**Post date:** [May 14, 2019, 6:13pm UTC](https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212/6 "2019-05-14T18:13:34Z")

</div>

> [@raspbewwies](#):
>
> After checking the documentation, it was clear that I couldn’t run it on java 1.8 (my version) without going through cmd, so I tried their solution on cmd -

can i have a link to that documentation @raspbewwies??

---

<div class="post-metadata">

**Author:** ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)\
**Post date:** [May 14, 2019, 6:18pm UTC](https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212/7 "2019-05-14T18:18:31Z")

</div>

@raspbewwies , now which version of java do you exactly have installed properly with the path variable properly set??

the latest standalone package we have now supports java8 , upgrading to java 12 is still under progress.

---

<div class="post-metadata">

**Author:** ![mozzy](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mozzy/32/11815_2.png) [@mozzy](https://talk.openmrs.org/u/mozzy)\
**Post date:** [May 15, 2019, 7:42am UTC](https://talk.openmrs.org/t/openmrs-standalone-doesnt-run/23212/8 "2019-05-15T07:42:57Z")

</div>

but also to note , java is perfectly backward compatible. actually a project built with java 1 can perfectly run with java 12. the only problem will arise from other libraries used.
