Cannot open Standalone version


(Emma Brofsky) #1

Hi there- I have downloaded the Standalone version 2.8.0 on a Mac. I have unzipped the files. When I click on the file openmrs-standalone.jar, nothing opens or installs. I have Java 8. What else could be the issue?


(Daniel Kayiwa) #2

Try to go the standalone folder on command prompt and type this command: java -jar openmrs-standalone.jar

Then share the log at pastebin.com


(Emma Brofsky) #3

It just says: Unable to access jarfile openmrs-standalone.jar


(Daniel Kayiwa) #4

Sharing the full log would be helpful


(Emma Brofsky) #5

Emmas-MacBook-Air:~ emmabrofsky$ tail java -jar openmrs-standalone.jar

tail: java: No such file or directory

tail: -jar: No such file or directory

tail: openmrs-standalone.jar: No such file or directory


(William Zhang) #6

Your local directory should be the standalone folder: to switch directories in bash, type cd directory_name. After that, run java -jar openmrs-standalone.jar and share the full log.


(Emma Brofsky) #7

Emmas-MacBook-Air:~ emmabrofsky$ cd Desktop/referenceapplication-standalone-2.8.0

Emmas-MacBook-Air:referenceapplication-standalone-2.8.0 emmabrofsky$ 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.defineClassCond(ClassLoader.java:637)

at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Emmas-MacBook-Air:referenceapplication-standalone-2.8.0 emmabrofsky$


(William Zhang) #8

Someone else on the Talk got a similar error too:

This is most likely due to your Java version. Make sure that it is version 1.8. You can see how to change it here: https://wiki.openmrs.org/display/docs/OpenMRS+Installation+for+Developers+on+Ubuntu

The wiki link is for Ubuntu but the bash commands described should work with MacOs as well.