When creating the first module, I ran this command;
C:\Users\Godson_Prints\basicexample>mvn clean install openmrs-sdk:run
however, am getting this error as indicated in the screenshot
When creating the first module, I ran this command;
C:\Users\Godson_Prints\basicexample>mvn clean install openmrs-sdk:run
however, am getting this error as indicated in the screenshot
What would be the cause?
First create an sdk set up, Actually i would advise to create a new directory call it C:\Users\Godson_Prints\servers>mvn clean install openmrs-sdk:setup, then after setting up your server well, you can run by C:\Users\Godson_Prints\server>mvn clean install openmrs-sdk:run choosing the server name
@geofreys this is how your error No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
Kindly ensure you have installed Oracle JDK and put it first in PATH. If there is no javac, itβs JRE, not JDK for the terminal always uses JDK from PATH.
@geofreys Just adding more details on where to setup. Main reason would be the JAVA_HOME setup in the environment variable should be pointing to correct JDK location.
- Check System β Advance System Settings
- Click on Environment variable
- Add variable JAVA_HOME β βC:\Program Files\Java\jdk1.8.0_141;β(depending on the java version you are running)
- Edit βpathβ β append %JAVA_HOME%; to the existing text.
Good mng Sharif, Yes I did as instructed and am now at this installation stage as indicated below. Thanks
Good progress , Please let us know of your progress thanks
Hello team,
I have finally reached this stage. Am now able to view the basic page at http://localhost:8080/openmrs/ . This is now my screenshot
Good progress
Thats nice, did you create your first basic module using openmrs sdk architecture, As in Mvn openmrs-sdk:create
Great thanks to @sharif for this link. Create your First module Using Openmrs SDK and Push it to GitHub - YouTube, I was able to create my first module and push it on my git.
check it out on this link; GitHub - Geofreys/patientinfo at master
Thanks for your support