Failed to run DHIS on Windows Server

Dear Community,
I’m new in DHIS and I installed DHIS2 on Windows Server using this guide.
DHIS not running, the error is:
SEVERE [main] org.apache.catalina.core.StandardContext.filterStart Exception starting filter [org.hisp.dhis.servlet.filter.HttpNoCacheFilter]
java.lang.UnsupportedClassVersionError: org/hisp/dhis/servlet/filter/HttpNoCacheFilter has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class [org.hisp.dhis.servlet.filter.HttpNoCacheFilter])

Windows Server 2016; RAM 512 GB (server isn’t used only for DHIS),
jre1.8.0_333 (x64)
JAVA_OPTS: -Xms7500m -Xmx7500m -XX:PermSize=2048m -XX:MaxPermSize=2048m

Thanks in advance

Welcome to the community @vplesca! I think you need to update your Java Runtime, Java Downloads | Oracle

Dear @Gassim,
On the server is installed latest version of JRE:
Version 8 Update 333 (build 1.8.0_333-b02) = jre1.8.0_333 = jdk-8u333-windows-x64.exe

1 Like

Hi @vplesca

DHIS version 2.38 requires Java 11 or greater. Java 8 will not work.

Kind regards,


Thanks @phil
I’m confused by the terms used by Java. I’m trying to install the latest version of JRE, but not JDK.

As most people say you need to upgrade your java version. BUT!

Make sure also you environment varaible points to the latest JDK or JRE as JAVA_HOME variable.

Usually , add this to your environment as **

JAVA_HOME=‘C:/Program Files…/JDK/BIN;’

** or something similar.

And Go to terminal/CMD and type

java --version

if you termainal show the java version as 11 and above you are good to go!!


@dannyboy, thanks all done & is Ok