Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DHIS-2 not running

Tags:

java

maven

dhis-2

I want to use DHIS-2 in my local system (localhost). i follow steps from here. And all files build in my system by following command

mvn install // on dhis-2 Dir and also /dhis-2/dhis-web

But i can't get this command work mvn jetty:run-war every time it give error.

Is there any step by step solution fro my problem? I want to run DHIS-2 in my local system using Eclipse. I am completely lost and want some guidelines.

like image 695
Blu Avatar asked Apr 20 '26 16:04

Blu


1 Answers

First navigate to dhis-2/dhis-web/dhis-web-portal and then run:

mvn jetty:run-war

You might get this exception:

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

If you do, edit your .bashrc or .bash_profile and add:

export _JAVA_OPTIONS="-Xmx7500m -Xms4000m -XX:MaxPermSize=500m -XX:PermSize=300m"
like image 184
Muthoni Avatar answered Apr 22 '26 06:04

Muthoni