how do I solve the following error

[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 07:45 min [INFO] Finished at: 2023-02-27T16:49:43+03:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project openmrs-api: Compilation failure [ERROR] /C:/Users/Peter/Desktop/open/New folder/openmrs-core/api/src/main/java/org/openmrs/module/[17,27] package java.rmi.activation does not exist [ERROR] [ERROR] → [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] MojoFailureException - Apache Maven - Apache Software Foundation [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :openmrs-api

@peterwambua13452 Can you share your full error log here or in to get more clear what exactly are issues.

@peterwambua13452 I want to think that you are facing an error message of the maven build failure to compile the openMRS-API if so you need to add the missing dependency that contains the required package to the project’s pom.xml file. You can try searching for the dependency in Maven Central Repository, though you need to post the whole error using Pastebin so that we get to know the exact issues you are facing

In addition to all the above, what does this command return? mvn -v

Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584) Maven home: C:\Program Files\apache-maven-3.9.0 Java version: 19.0.2, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-19 Default locale: en_US, platform encoding: UTF-8 OS name: “windows 10”, version: “10.0”, arch: “amd64”, family: “windows”

Switch to Java 1.8