AdminList error when building new module

OpenMRS Version: 2.0.1

As I followed the tutorial for creating an OpenMRS Module and created my own module, I stumbled upon an error in the omod project under the file where the org.openmrs.module.web.extension.AdministrationExt had an error thus making the class not work.

I added the openmrs-web-1.11.6.jar file in the build path under libraries and it seemed to fix the error as the warnings were gone.

As I began to build the project to create an .omod file, the build failed and it’s because the package org.openmrs.module.web.extension does not exist. I can’t find it anywhere in my project, does this mean I have to create one myself manually?

[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/zach/CHITS/chits-3-core/omod/src/main/java/org/openmrs/module/chitscore/extension/html/[16,40] package org.openmrs.module.web.extension does not exist [ERROR] /home/zach/CHITS/chits-3-core/omod/src/main/java/org/openmrs/module/chitscore/extension/html/[23,32] cannot find symbol symbol: class AdministrationSectionExt

Tutorial for creating OpenMRS Module:

Add a dependency to the legacyui module as here:

And remember to make your module aware of it as here:

1 Like

Thank you sir!