LibreHIS compilation - LibreHIS/librehis GitHub Wiki

Microsoft Windows

  1. Download and install latest Java Development Kit 7uXX (JDK7uXX):

    http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html

    1.1 Ensure that jdk_install_home/bin directory is in the PATH

  2. Download and install latest Apache ANT:

    http://ant.apache.org/bindownload.cgi

    2.1 Simply involves using winzip to a chosen install dir.

    2.2 Make sure ant_install_dir/bin is in the PATH.

  3. Modify WebAppBuild.xml:

    3.1 The property "workspace" on line 4 of openmaxims_workspace/WebApp/WebAppBuild.xml ought to point to the openmaxims_workspace.

  4. Modify setenv.bat:

    Example:

    set PATH=C:\Program Files\Java\jdk1.7.0_80\bin;C:\Program Files\Java\apache-ant-1.9.7\bin;%path%

    set ANT_OPTS="-Xmx2048m"

  5. Navigate to openMAXIMS/Source Library/ folder and use following batch files in command line in order:

    5.1 setenv.bat

    5.2 build_openMAXIMS.bat

  6. Once the build is successful, there is a newly created file called openMAXIMS.war located in /openmaxims_workspace/WebApp/ folder.