Wiki Spaces


Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk »
Real-Time: IRC Chat


Child pages
  • Setting of OpenMRS development environment and getting started up
Skip to end of metadata
Go to start of metadata

This page is too good for setting up the OpenMRS "Step by Step Installation for Developers". I am writing most of the steps alike but in my language...

  1. Install Java 1.7(preferrably):

Although installation of 1.6 also works. Google it you will get it easily. To check whether you have java installed on your system check the version with the command "javac -version" it should give somewhat "javac 1.7.0_51" if it gives the output as "javac 1.6.*_**" then also it's fine.

     2. Setup MySQL:

follow this link or google it. While installing MySQL you will be prompted to give the password, that password is for the root user. To check whether you have correctly installed mysql or not "mysql -u root -p" after that type the password and you will see a mysql console...(most of these commands work in linux only)

     3. Install Tomcat:

For linux users the command is "sudo apt-get install tomcat6". For other OS users please google.

If you are behind a proxy then use this link to put the proxy options:

use the command "cd" and migrate to the folder "/etc/maven" command:"cd /etc/maven"

after that open the settings.xml file using any editor command: "sudo gedit -b settings.xml"

paste this in the end of file: (in my case the proxy settings were)


     4. Running the server and passing all unit test cases:

Now go to any folder where you want to keep your openmrs folder:

use the command "git clone"

go to that folder i.e. command: "cd openmrs-core"

run "mvn clean install" (it will take time, approximately 5-10 minutes)

now go to folder webapp "cd webapp" (i.e. you are in the folder "openmrs-core/webapp" now)

be a root user "sudo su"

now run the jetty server "sudo mvn jetty:run"

(the last lines of running the command will be "

[INFO] Started Jetty Server

[INFO] Starting scanner at interval of 10 seconds.

" and the terminal must stuck there, thats what running the server means)

       5.Unexpected situation that the server doesn't run:

If "sudo mvn jetty:run" doesn't run it's not because of proxy because you have already set it.

It is not running because by default it runs on the port "8080", the port might be occupied. In my case tomcat server was running on that port so I stopped it using the commands: (Follow this link

sudo /etc/init.d/tomcat6 start                       // To start tomcat server
sudo /etc/init.d/tomcat6 stop // To stop tomcat server

run "sudo mvn jetty:run" again

now you are all set and ready to go... if you still get some errors ask on irc channel of OpenMRS(channel: #OpenMRS)

      6. Now go to the URL "http://localhost:8080/openmrs/"

when asked for mysql password: give the password for root user.. and if it doesn't work, remove the directory openmrs-core, restart your pc, reclone the repository from git, go to that folder and run "mvn clean install", finally go to the webapp folder "sudo mvn jetty:run"

N.B. If you want to search for any controller or html page name in the openmrs directory (since the repository is vast, it's difficult to find them unless you are aware of the structure of openmrs) the command in linux is:

find . -name "*<html page/ controller name">*" (not the asterisk mark is necessary, so that the closer searches are also visible otherwise it will look for exact search)

     7. Go on with the implementation:

It is an awesome blog written by a developer of OpenMRS (srimaurya kummamuru).

Follow this link ""

     8. This troubleshooting might be required:
I have written a blog regarding the troubleshoot, which you require, Troubleshooting, that might be required if you follow this method of installation 



  • No labels


  1. Anonymous!forum/madu-subur-max-herbal-penyubur

  2. Anonymous

  3. Anonymous

    pa apoteket online, , säkert Danmark.
  4. Anonymous

    med tilskud, - generisk uden.
  5. Anonymous

    generisk recept, - pris recept.
  6. Anonymous

    Precio costa rica donde comprar buenos aires.
  7. Anonymous

    Choose the folder and tap it to see whether it is composed of the game you are browsing for. This game really does a good job of producing hidden thing gameplay intriguing since you rush to fulfill the demands of their clients. Although game is rather repetitive, this only adds to the addictive character and after just a few minutes many gamers are most likely to discover that they're completely hooked. This game also offers a societal network and that means that you're all set to interact together with various people from all over the world and you couuld exchange your opinions and educate them about Gardenscapes Hack. This is a really well known game and I'm eager to find out what else has been added. By connecting with numerous game enthusiasts on face book, it is possible to make Coins. Coins will be the principal currency of the game that's employed for obtaining power ups. Currently you are able to contain Endless Coins with no energy. Our Gardenscapes New Acres cheats could be employed on all types of Android and i-OS devices. The hack was first perfected to enure which you remain at the cover of this leader board. Our Gardenscapes Hack can be an secure and dependable tool which was meticulously assembled by a group of professional gamers. As you advance from the match, you could strike puzzles which is often paired for more than three. This game is truly exceptional! All concealed thing puzzle game titles are rather helpful for growing the sensation of logic for kids. Tap the suitable sub-folder when you discover the match. It's important to consider inch thing ahead into the match so you have the ability to reach high level degrees rapidly. You can easily find your curious game with full variation through affordable rates.
Write a comment…