Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

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

Documentation

Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 35 Next »

Below is a listing of software applications that you will need to install in order to develop in the OpenMRS codebase. Installation procedures may vary somewhat for Windows, Linux, or Mac OS X platforms. Still, OpenMRS depends mostly on Java which runs the same across those systems. This list will try to describe the general pieces that you should install to start work on any development computer.

Dependencies:

Java

Java is the language in which OpenMRS is written. The latest version of OpenMRS requires at least Java version 1.6. If you plan to edit the source, you will need the JDK; if you plan just to run OpenMRS, you will only need the JRE.

MySQL

MySQL 5.x is the database software in which OpenMRS stores its records. You should know your MySQL root password, or have a database ready with username and password to install OpenMRS into.

Eclipse (Helios 3.6.0)

Eclipse IDE for Java EE Developers is the recommended Java development environment. You will need the latest stable release but OpenMRS should still function on older versions that can use Maven integration.

Subclipse
  • Subclipse is a plugin that integrates Subversion/SVN into Eclipse. (recommended)
    • Use the version number in the footer of the OpenMRS Subversion repository to determine which version of the client to use. If the footer says something like "Powered by Subversion 1.4.2 (r22196)", use Subclipse v1.4.x update site.
    • For non-Windows32bit installations, be sure to read about setting up JavaHL for your platform.
    • SVNkit is the Pure Java alternative to JavaHL. If you use it, you do not need to configure platform specific binaries.
    • For Eclipse Helios you may find it convenient to use the Subclipse SVNkit integration, an optional part of Subclipse under "Subclipse SVNkit Option".
    • If you choose the Pure Java option, you may need to specify the SVNkit choice in the Preferences->Team->SVN panel.
  • Subclipse 1.4.x Update Site: http://subclipse.tigris.org/update_1.4.x
Maven M2e plugin + M2e Extras

Apache Maven is an open source build system similar to make or ant but it also manages dependencies. OpenMRS transitioned from the ant build system at the 2010 1.8 Hackathon on 19 August 2010. There are two different Eclipse integration plugins for Maven but OpenMRS developers tentatively recommend M2E. Be sure to install both the base packages and the SCM and Subclipse SCM extras packages from the extras update site.

Optional: Tomcat

Tomcat is a J2EE server on which OpenMRS can be deployed. You will want the core that matches your system specs the closest: probably 32-bit zip or 64-bit zip or bz2 on Linux. If you choose not to install Tomcat, the development-oriented J2EE server, Jetty already installs with Maven and integrates with the Eclipse Run and Debug workflow.

Deprecated: OpenMRS "Development Studio" extensions

In the past, there was a special branded distribution of Eclipse that integrated with Ant and optimized module development. This is no longer developed and is deprecated. (archived wiki link)

Check out the Trunk with Maven

Finally, and most importantly, you need to get the code from the Subversion/SVN revision control system by using the Maven tools you have installed. There are detailed instructions for this process here 

Old Version 

Unable to render {include} The included page could not be found.
  • No labels