Standalone version installation constantly fails

I have been trying to install the 2.8.0 standalone version on a Windows 11 machine but keep getting an error that the server is unable to start. I’ll paste the error below but everything I’ve been able to find so far points to it being an issue with the version of Java being used. When I try to install it using the latest, which is Java 8 (1.8), it won’t even run and I get an “UnsupportedClassVersionError” that says it’s written for class 61 but I’m using 52. Class 61 refers to Java 17 but Java 8 only supports up to class 52. So I’m confused about how the latest version of Java is 8 but it was written using Java 17.

I was able to install Java 17 (and several other versions after it didn’t work), which allowed the openmrs-standalone.jar file to run, but then it opens a browser window with the following error:

org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘medicationDispenseFhirR3ResourceProvider’: Unsatisfied dependency expressed through method ‘setFhirMedicationDispenseService’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘fhirMedicationDispenseServiceImpl’: Unsatisfied dependency expressed through method ‘setDao’ parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘fhirMedicationDispenseDaoImpl’ defined in URL [jar:file:/C:/openmrs-standalone-2.8.0/appdata/.openmrs-lib-cache/fhir2/lib/fhir2-api-2.6-2.7.0.jar!/org/openmrs/module/fhir2/api/dao/impl/FhirMedicationDispenseDaoImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘cacheInterceptor’ available

I have searched everywhere and installed almost every version of Java along with many other suggestions but just can’t get it to install correctly.

Any help would be greatly appreciated.

Thank you!

Where did you download it from? Can you share the exact download url?

Hello,

Here is the direct link - https://sourceforge.net/projects/openmrs/files/releases/OpenMRS_Platform_2.8.0/openmrs-standalone-2.8.0.zip/download

I got it from this page - Download - OpenMRS

Thanks!

indeed @awingfield1 this version of standalone needs a version upgrade of the FHIR module that’s why it is showing these errors basically its not the java version with the issue

@dkayiwa we need to upgrade to the latest core version and fhir module for future downloads

@jonathan do you have the bandwidth to do that? :slight_smile:

sure @dkayiwa let me look into it

Interesting with a deeper dive in, I found that this issue was fixed with the current Standalone Platform version to quote 2.8.3 (not the latest)

However found a new issue where Machines on Java 24+ jdk version fail silently resulting into ScreenShot

So Went ahead and created an issue for this here Fix Standalone Platform Java Version Inheritance and Add Fast-Fail Validation for Java 24+

Added a PR for the fix here STAND-142: Fix: Enforce Java 17-21 Compatibility and Inherit Java Version by Muta-Jonathan · Pull Request #128 · openmrs/openmrs-standalone · GitHub

A simple take on what this bring s to the Platform standalone is a unity check for the java version and since Openmrs doesnot support Java 24+ currently a display to the user will be shown as the flows

Next steps @dkayiwa Is updating to the latest platform version and Deciding whether we migrate the publishing to github actions or still use the Bamboo to publish for Download

Thanks all for looking into this. So as it stands now, the standalone version still requires some fixes before it will work?

Thanks!

How can I install version 2.8.3 so that I can actually see how the system works?

Thanks!