Installing OpenMRS on Mac

Hi guys -

I recently downloaded all the java reqs and ran all the scripts that were in the read me text file. The script ran but no server showed up. How do I get this to work? I need clear instructions as I am computer illiterate :slight_smile:

Thanks Guy

Can you show us the command you ran as well as the output of that command?

Also, I suggest you try using the OpenMRS SDK, documented at http://om.rs/sdk

Depending on what you want to do, you may also consider downloading and running the standalone version: https://sourceforge.net/projects/openmrs/files/releases/OpenMRS_2.5/openmrs-standalone-2.5.zip/download

do I have to go thru the java process too? Is there an app that I can just install? All I need is to put in patient info and just specify the time they’re gonna see their doctor. I don’t need actual scheduling capabilities. More like a calendar. Please help. Also, give me detailed instructions on how to install this because I know nothing about computers.

@gjaber did you try out the link i gave you?

I did. it downloaded a folder but I have no idea what to do with it.

Just double click the openmrs-standalone.jar to run. More instructions can be found at https://wiki.openmrs.org/display/docs/OpenMRS+Standalone

I did. Nothing happened. I installed the latest Java but still nothing. I’m running this on Mac if that helps.

Not even a window pop up with an error message?

no nothing. please help.

What happens if you go to the terminal, change to the standalone folder and type this? java -jar openmrs-standalone.jar

how do I change to standalone folder there?

possibly this can help you on learning how to change and navigate directories(folders)

This is what I get:

Guys-MacBook-Pro:~ Guy$ cd ~/downloads/openmrs Guys-MacBook-Pro:openmrs Guy$ java -jar openmrs-standalone.jar Exception in thread “main” java.lang.UnsupportedClassVersionError: org/openmrs/standalone/Bootstrap : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) Guys-MacBook-Pro:openmrs Guy$

This is because you are using a version of Java lower than 1.8 You have the following options:

  1. Upgrade to Java 1.8
  2. Or use the 2.4 standalone which uses versions of Java before 1.8 https://sourceforge.net/projects/openmrs/files/releases/OpenMRS_2.4/

ok I worked. Thank you. It took like 10 mins to load tho. Is this gonna happen every time? And also, chrome opened a new page with the open MRS website. It’s asking for login info.

it wont take that long other times. Username: admin password: Admin123