Switching from Legacy UI to new UI Framework

System specifications:

  • TomCat 8
  • openjdk version “1.8.0_222”
  • OpenMRS Version: 2.4.0 SNAPSHOT Build dc9937
  • Legacy UI Module 1.5.0
  • MySQL 5.7

Question: I am currently using Legacy UI and want to switch to the new UI. I have installed the following modules and they all seem to be loaded. How can I make the OpenMRS UI Framework default? The system currently only loads using Legacy UI.

You need reference application distribution, which contains a collection of modules that will override your current legacy UI to reference application. Check those here https://openmrs.org/download/

1 Like

I have made some changes to the openmrs-core (just for some testing purposes). Is it impossible to get the new UI on the version that I built myself?

Have you try access the referenceapplication-addons-2.9.0.zip If Yes, | Backup your existing modules and restore the 2.9.0 addons, then restart your server.

Explore Nicolas suggestion as well.

Thanks for your suggestion @ggomez. However, when I tried replacing my modules with the ones in the link you sent, I got the following errors: https://pastebin.com/45csDw84

Can you make your tomcat point to Java 8?

Hi Daniel,

Yes, I am running java-8-openjdk-amd64.

Thanks,

How do you confirm that your tomcat is using that version instead of another?

@dkayiwa, thank you. My tomcat was not using Java8. For some reason it was still using JRE. Thanks so much for all the time and help you gave on the other tread. I can now save the Date of Birth with no issues on the Legacy UI.