LibreHIS compilation - LibreHIS/librehis GitHub Wiki
Microsoft Windows
-
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
-
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.
-
Modify WebAppBuild.xml:
3.1 The property "workspace" on line 4 of openmaxims_workspace/WebApp/WebAppBuild.xml ought to point to the openmaxims_workspace.
-
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"
-
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
-
Once the build is successful, there is a newly created file called openMAXIMS.war located in /openmaxims_workspace/WebApp/ folder.