Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[r17619]: trunk / eXist / bin / startup.bat Maximize Restore History

Download this file

startup.bat    61 lines (43 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@echo off
rem $Id: startup.bat 17619 2012-11-18 13:37:45Z wolfgang_m $
rem
rem In addition to the other parameter options for the Jetty container
rem pass -j or --jmx to enable JMX agent. The port for it can be specified
rem with optional port number e.g. -j1099 or --jmx=1099.
rem
set JMX_ENABLED=0
set JMX_PORT=1099
set JAVA_ARGS=
set JAVA_RUN="java"
if not "%JAVA_HOME%" == "" (
set JAVA_RUN="%JAVA_HOME%\bin\java"
goto gotJavaHome
)
rem @WINDOWS_INSTALLER_1@
echo WARNING: JAVA_HOME not found in your environment.
echo.
echo Please, set the JAVA_HOME variable in your enviroment to match the
echo location of the Java Virtual Machine you want to use in case of run fail.
echo.
:gotJavaHome
rem @WINDOWS_INSTALLER_2@
if not "%EXIST_HOME%" == "" goto gotExistHome
rem try to guess
set EXIST_HOME=.
if exist "%EXIST_HOME%\start.jar" goto gotExistHome
set EXIST_HOME=..
if exist "%EXIST_HOME%\start.jar" goto gotExistHome
echo EXIST_HOME not found. Please set your
echo EXIST_HOME environment variable to the
echo home directory of eXist.
goto :eof
:gotExistHome
set MX=768
rem @WINDOWS_INSTALLER_3@
set JAVA_ENDORSED_DIRS="%EXIST_HOME%"\lib\endorsed
set JAVA_OPTS="-Xms128m -Xmx%MX%m -Dfile.encoding=UTF-8 -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS%"
set BATCH.D="%EXIST_HOME%\bin\batch.d"
call %BATCH.D%\get_opts.bat %*
call %BATCH.D%\check_jmx_status.bat
%JAVA_RUN% "%JAVA_OPTS%" -Dexist.home="%EXIST_HOME%" -jar "%EXIST_HOME%\start.jar" jetty %JAVA_ARGS%
:eof