@echo off REM $Id: activator.bat,v 2.7 2005/05/06 10:39:01 horst Exp $ REM REM Usage: activator REM up to 4 -Dname=value options may be appended rem Make sure prerequisite environment variable is set rem To identify the JVM use either JAVAHOME or JAVA_HOME variable. if not "%JAVAHOME%" == "" goto gotJavaHome set JAVAHOME=%JAVA_HOME% if not "%JAVAHOME%" == "" goto gotJavaHome echo The JAVAHOME environment variable is not defined echo This environment variable is needed to run this program, e.g. echo set JAVAHOME=C:\Programme\JavaSoft\j2sdk1.4.1_01 goto end :gotJavaHome if exist "%JAVAHOME%\bin\java.exe" goto okJavaHome echo The JAVAHOME environment variable is not defined correctly echo This environment variable is needed to run this program goto end :okJavaHome rem checking for java compiler (JDK or eclipse) set COMPILER=%JAVAHOME%\lib\tools.jar if exist "%COMPILER%" goto okJc set COMPILER=jdtcore.jar if exist "%COMPILER%" goto okJc echo No Java compiler, neither JDK (tools.jar) nor Eclipse (jdtcore.jar) found. echo To avoid full JDK download copy jdtcore.jar into this directory. goto end :okJc REM JVM options: -Xmx512m sets max heap to 512 MB (for huge exports) REM (default and maximum depend on system used) REM Up to 4 options can be specified additionally, e.g. REM -Djava.util.logging.config.file=examples\config\log.properties REM See Manual about valid options. REM Most properties are saved as preferences after first use. REM A valid license shall be available as ./activator.lic in classpath %JAVAHOME%\bin\java -Xmx512m -classpath .;activator.jar;castor.jar;chart.jar;js.jar;poi.jar;netcdf.jar;%COMPILER %1 %2 %3 %4 com.tifff.Main :end