# Unable to start OpenMRS

**URL:** https://talk.openmrs.org/t/unable-to-start-openmrs/10193
**Category:** Ask OpenMRS
**Created:** [February 21, 2017, 5:27pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193 "2017-02-21T17:27:03Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 21, 2017, 5:27pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/1 "2017-02-21T17:27:03Z")

</div>

**Openmrs standalone 2.0.4.1**** Java 8**

Hey guys, I am having the following issue while running openmrs standalone. When running with java 7 I am not even able to open the jar file, I get “A Java Exception has Occured” error.

 ![](https://talk.openmrs.org/uploads/default/original/2X/e/ecc39186b4df175f129dd95cc017879645961578.PNG) 

Suggestions are welcome.

---

<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: [February 21, 2017, 6:43pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/2 "2017-02-21T18:43:36Z")

</div>

This one requires Java 8

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 21, 2017, 6:56pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/3 "2017-02-21T18:56:59Z")

</div>

I do have Java 8 installed and the above error I am getting is with Java 8. I have posted mine current config at the top. Thank you.

---

<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: [February 21, 2017, 7:06pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/4 "2017-02-21T19:06:59Z")

</div>

Can you check the tomcat/logs folder for the log file and paste its contents at [pastebin.com](http://pastebin.com)?

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 21, 2017, 7:21pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/5 "2017-02-21T19:21:27Z")

</div>

[http://pastebin.com/RgTMGAa1](http://pastebin.com/RgTMGAa1)

---

<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: [February 21, 2017, 7:30pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/6 "2017-02-21T19:30:28Z")

</div>

Download the legacyui module from here [https://modules.openmrs.org/#/show/231/legacy-ui-module](https://modules.openmrs.org/#/show/231/legacy-ui-module) and paste it in the standalone’s “appdata/modules” folder. Then restart the standalone.

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 21, 2017, 7:40pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/7 "2017-02-21T19:40:20Z")

</div>

Just did it but getting the same error. Thank you.

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 21, 2017, 7:45pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/8 "2017-02-21T19:45:09Z")

</div>

I also tried to run openmrs standalone 2.5 but facing the exact same issue.

---

<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: [February 21, 2017, 7:50pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/9 "2017-02-21T19:50:04Z")

</div>

Which modules do you have in that folder?

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 21, 2017, 7:54pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/10 "2017-02-21T19:54:51Z")

</div>

There was none, the one you told to copy was the first one. (Openmrs standalone 2.0.4.1)

 ![](https://talk.openmrs.org/uploads/default/original/2X/0/06b45acd8b187019408eb7c30dcbcf64105751da.PNG)

But in case of Openmrs standalone 2.5 there were lots.

 ![](https://talk.openmrs.org/uploads/default/original/2X/3/3ff5578a2d744743aee6a21508ce0e539ddfd33c.PNG)

---

<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: [February 21, 2017, 8:48pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/11 "2017-02-21T20:48:32Z")

</div>

Stop the standalone, delete the logs folder, restart the standalone with only the legacyui module in the modules folder and past the log contents at [pastebin.com](http://pastebin.com)

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 21, 2017, 11:35pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/12 "2017-02-21T23:35:54Z")

</div>

[http://pastebin.com/v7VY7NfY](http://pastebin.com/v7VY7NfY)

---

<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: [February 22, 2017, 6:58am UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/13 "2017-02-22T06:58:41Z")

</div>

Just in case some files are corrupted. Can you delete your unzipped standalone folder, then unzip it again and test?

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 22, 2017, 3:26pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/16 "2017-02-22T15:26:03Z")

</div>

This is the log file from the fresh unzipped standalone with just the legacyui module inside. Thank you. [http://pastebin.com/44C3FMBP](http://pastebin.com/44C3FMBP)

---

<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: [February 22, 2017, 7:15pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/17 "2017-02-22T19:15:51Z")

</div>

This does not look like all in the log file.

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 22, 2017, 10:00pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/18 "2017-02-22T22:00:48Z")

</div>

Sorry for that. Here’s the complete log. [2017-2-22.txt](https://talk.openmrs.org/uploads/default/original/2X/a/a6bbce89b2af4425197caebbde43f961e7a0db99.txt) (1.3 MB)

Thank you so much.

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 22, 2017, 10:02pm UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/19 "2017-02-22T22:02:47Z")

</div>

I got “You have exceeded the maximum paste size of 512 kilobytes per paste. PRO users don’t have this limit!” in pastebin. So I had to upload the actual log right here.

---

<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: [February 23, 2017, 8:25am UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/20 "2017-02-23T08:25:24Z")

</div>

This looks like something to do with the path with spaces problem. Try copy the “openmrs-standalone-2.0.4.1” folder and paste it directly on drive C. Then run the standalone again and tell us what happens.

Alternatively, just remove spaces from the folders where the standalone was extracted.

---

<div class="post-metadata">

### Author: ![sojha](https://talk.openmrs.org/letter_avatar/sojha/32/5_5575768a8748004e209b776fc1b2916d.png) [@sojha](https://talk.openmrs.org/u/sojha)
#### Post date: [February 23, 2017, 9:07am UTC](https://talk.openmrs.org/t/unable-to-start-openmrs/10193/21 "2017-02-23T09:07:52Z")

</div>

Running the standalone which been pasted directly to the C drive did the job. Thank you so much for your guidance.
