# how to connect Java to openmrs-standalone file

**URL:** <https://talk.openmrs.org/t/how-to-connect-java-to-openmrs-standalone-file/18478>\
**Category:** Implementing\
**Created:** [June 12, 2018, 10:18pm UTC](https://talk.openmrs.org/t/how-to-connect-java-to-openmrs-standalone-file/18478 "2018-06-12T22:18:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mregan](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mregan/32/7714_2.png) [@mregan](https://talk.openmrs.org/u/mregan)\
**Post date:** [June 12, 2018, 10:18pm UTC](https://talk.openmrs.org/t/how-to-connect-java-to-openmrs-standalone-file/18478/1 "2018-06-12T22:18:59Z")

</div>

Hi, I apologize for asking such a basic question, but hopefully the answer will be easy. I have installed the standalone OpenMRS on a desktop and a laptop successfully in the past week so I do know a small bit about it, but now I am having problems when trying on someone else’s laptop. I downloaded, and after extracting all files from the Zip folder, saw that the “openmrs-standalone” file was of type “WinRAR archive” instead of “Executable Jar File”. So I realized that the laptop didn’t have Java and installed Java (v8) and also checked the Windows version which is Windows 10 Home. I also restarted the computer just in case it mattered. Now when I right click on “openmrs-standalone” and Open with Java ™ Platform SE binary, nothing happens whatsoever. There is no error message. Does anyone know what is going on and what I should do? Thank you.

- Melissa

---

<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:** [June 12, 2018, 10:27pm UTC](https://talk.openmrs.org/t/how-to-connect-java-to-openmrs-standalone-file/18478/2 "2018-06-12T22:27:19Z")

</div>

Which version of the openmrs standalone did you download onto that computer?

---

<div class="post-metadata">

**Author:** ![mregan](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mregan/32/7714_2.png) [@mregan](https://talk.openmrs.org/u/mregan)\
**Post date:** [June 12, 2018, 10:54pm UTC](https://talk.openmrs.org/t/how-to-connect-java-to-openmrs-standalone-file/18478/3 "2018-06-12T22:54:08Z")

</div>

This one (copied from [https://openmrs.org/download/](https://openmrs.org/download/)): Reference Application 2.7.0 Standalone Edition 292.2 MB at [sourceforge.net](http://sourceforge.net) · Released 20-Dec-2017 Linux, Mac OS X, Windows · Release Notes

Recommended for new people exploring OpenMRS. A self-contained ZIP archive that includes an embedded database and application server, as well the option to install demo data for sample patients. Expand the ZIP archive and run the .jar file to start the Reference Application. Log in with username: admin, password: Admin123.

This is not intended for production use.

Download Standalone (button)

---

<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:** [June 12, 2018, 11:16pm UTC](https://talk.openmrs.org/t/how-to-connect-java-to-openmrs-standalone-file/18478/4 "2018-06-12T23:16:28Z")

</div>

On command prompt, change to the directory of the extracted standalone and type this command:

`java -jar openmrs-standalone.jar`

Then tell us what happens.

---

<div class="post-metadata">

**Author:** ![mregan](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mregan/32/7714_2.png) [@mregan](https://talk.openmrs.org/u/mregan)\
**Post date:** [June 13, 2018, 12:25am UTC](https://talk.openmrs.org/t/how-to-connect-java-to-openmrs-standalone-file/18478/5 "2018-06-13T00:25:29Z")

</div>

I don’t have this laptop with me now, unfortunately, but I will try your suggestion tomorrow afternoon when I have access again. Will let you know, thank you!

---

<div class="post-metadata">

**Author:** ![mregan](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mregan/32/7714_2.png) [@mregan](https://talk.openmrs.org/u/mregan)\
**Post date:** [June 13, 2018, 7:39pm UTC](https://talk.openmrs.org/t/how-to-connect-java-to-openmrs-standalone-file/18478/6 "2018-06-13T19:39:14Z")

</div>

Daniel, Your suggestion worked!! Thank you VERY MUCH! We’ll be exploring the demo and then move on to the next step. Until my next question, Melissa
