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