← Back to team overview

dhis2-devs team mailing list archive

DHIS-lite and check for Java

 

Here is the current content of startup.bat for DHIS-lite:

@echo off

if not "%JAVA_HOME%" == "" goto startup
:abort
echo DHIS 2 requires a Java Runtime Environment to be installed
pause
goto end
:startup
echo Starting DHIS 2...
java -jar dhis2-lite.jar
goto end
:end

Unfortunately, this way of checking for Java is too assiduous, it will give
error messages in all those common cases where people in fact have Java
installed, but JAVA_HOME is not set (as is the case e.g. with Synergy
machines at the WHO). We should fine a different way of detecting whether
Java 1.6 is available.

Knut

Follow ups