Does a .jar file work as an OpenMRS module?

Hi, I am trying to install this module https://modules.openmrs.org/#/show/38/emrapi

but when I download it, it’s a .jar file. In the documentation for the modules it is specified that it is necessary that the files be .omod files Will it work with the .jar file?

An omod is just a renamed jar file, so it should be fine to change the file extension to omod and use the renamed file.

Thank you Pascal :slight_smile:

And by the way, the latest version of the module is 1.13 instead of 1.9 It is a bug in the module repository which sorts wrongly to end up showing 1.9 as the latest.

1 Like

@dkayiwa Yes, I had that difficulty. I need these modules for the Radiology module, and these are additional required modules. It acctually requires the 1.12 version; so it’s hard to tell which one is the 1.12 version

@dkayiwa @pascal I can’t convert the .jar file to the .omod file. I do name it as a .omod file, but it does not convert it. Do you know how to do it? https://modules.openmrs.org/#/show/38/emrapi

@memedhe no conversion needed. Just rename the file extension from .jar to .omod

2 Likes