/[xulu]/branches/1.8-gt2-2.6/defaults/startXULU.bat
ViewVC logotype

Contents of /branches/1.8-gt2-2.6/defaults/startXULU.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Wed Feb 25 11:54:01 2009 UTC (15 years, 9 months ago) by mojays
Original Path: trunk/defaults/startXULU.bat
File MIME type: text/plain
File size: 3705 byte(s)
First Commit, corresponds to Revision 1008 of Wikisquare-SVN 
1 @echo off
2 setlocal
3
4 set LIB_ROOT="..\xululib"
5
6 rem ###################################################################
7 rem ############# Xulu library paths and parameters ###############
8 rem ###################################################################
9 set XULU_LIB=classes
10 set XULU_MODELS_LIB=classes_models
11 if "%1"=="/useXuluJar" set XULU_LIB=%LIB_ROOT%\xulu\XuluModellingPlatform.jar
12 if "%1"=="/useXuluJar" set XULU_MODELS_LIB=%LIB_ROOT%\xulu\XuluModellingPlatformModels.jar
13 if "%1"=="/useXuluClasses" set XULU_LIB=classes
14 if "%1"=="/useXuluClasses" set XULU_MODELS_LIB=classes_models
15
16 set XULU_REGISTRY=registry_arrayGrid.xif
17 set XULU_LANGUAGE=de
18 set XULU_WORK_DIR=C:\
19 set XULU_START_SCRIPTS=
20 set XULU_RESOURCE=resource
21
22 rem ####################################################
23 rem ############# External libraries ###############
24 rem ####################################################
25
26 rem ##### Where to find "Java Advanced Imaging" (and ImageIO) #####
27 set JAI_ROOT=%LIB_ROOT%\jai-1_1_3\lib
28
29 rem ##### Where to find "GeoTools" #####
30 set GT_ROOT=%LIB_ROOT%\gt2-2.4.4
31
32 rem ##### Where to find gt2-arcgrid-2.1.x.jar (from SpearfishDemo) #####
33 set GT_ARCGRID_ROOT=%LIB_ROOT%\geotoolsArcGrid
34
35 rem ##### Where to find "Adagios" #####
36 set ADAGIOS_ROOT=%LIB_ROOT%\ADaGIoS
37
38 rem ##### Where to find "Log4j" #####
39 set LOG4J_ROOT=%LIB_ROOT%\log4j-1.2.14
40
41 rem ##### Where to find "JINI" #####
42 set JINI_ROOT=%LIB_ROOT%\jini
43
44 rem ##### Where to find "R" #####
45 set R_ROOT=%LIB_ROOT%\JavaRInterface
46
47 rem ##### Where to find "jFreeChart" #####
48 set JFREECHART_ROOT=%LIB_ROOT%\jFreeChart
49
50 rem ##### combine the external libs #####
51 set JAI_LIB=%JAI_ROOT%\*
52 set GT_LIB=%GT_ROOT%\*
53 set GT_LIB=%GT_LIB%;%GT_ARCGRID_ROOT%\gt2-arcgrid-2.3.0-M0.jar;%GT_ARCGRID_ROOT%\junit-4.4.jar
54 set ADAGIOS_LIB=%ADAGIOS_ROOT%\AdagiosJavaLib.jar
55 set JINI_LIB=%JINI_ROOT%\lib\*;%JINI_ROOT%\lib-dl\*;%JINI_ROOT%\lib-ext\*
56 rem set JINI_LIB=%JINI_ROOT%\lib\jsk-platform.jar;%JINI_ROOT%\lib\tools.jar
57 set LOG4J_LIB=%LOG4J_ROOT%\log4j-1.2.14.jar
58 set R_LIB=%R_ROOT%\JRI.jar;%R_ROOT%\libjri.so;%R_ROOT%\libR.so
59 set JFREECHART_LIB=%JFREECHART_ROOT%\jfreechart-1.0.6.jar;%JFREECHART_ROOT%\jcommon-1.0.10.jar
60
61 set LIB_ALL=%XULU_LIB%;%JAI_LIB%;%GT_LIB%;%ADAGIOS_LIB%;%LOG4J_LIB%;%JINI_LIB%;%R_LIB%;%JFREECHART_LIB%
62
63 rem ##### combine the native libs #####
64 rem set JAI_NATIVE=%JAI_ROOT%\native_win\mlib_jai.dll;%JAI_ROOT%\native_win\mlib_jai_mmx.dll;%JAI_ROOT%\native_win\mlib_jai_util.dll
65 set JAI_NATIVE=%JAI_ROOT%\native_win
66
67 set LIB_NATIVE=%JAI_NATIVE%
68
69
70 rem ##### combine Xulu starting parameters #####
71 set XULU_PARAMS=
72 if not "%XULU_LANGUAGE%"=="" set XULU_PARAMS=%XULU_PARAMS% -l %XULU_LANGUAGE%
73 if not "%XULU_REGISTRY%"=="" set XULU_PARAMS=%XULU_PARAMS% -rf %XULU_REGISTRY%
74 if not "%XULU_MODELS_LIB%"=="" set XULU_PARAMS=%XULU_PARAMS% -d %XULU_MODELS_LIB%
75 if not "%XULU_WORK_DIR%"=="" set XULU_PARAMS=%XULU_PARAMS% -w "%XULU_WORK_DIR%"
76 if not "%XULU_START_SCRIPTS%"=="" set XULU_PARAMS=%XULU_PARAMS% -s "%XULU_START_SCRIPTS%"
77
78
79 rem ##### determine java interpreter #####
80 set JAVA_PRG=start /B javaw
81 rem set JAVA_PRG=java
82 rem ##### for command line help, use java instead of javaw #####
83 if "%1"=="/?" set JAVA_PRG=java
84 if "%1"=="?" set JAVA_PRG=java
85 if "%1"=="-?" set JAVA_PRG=java
86 if "%1"=="--help" set JAVA_PRG=java
87 if "%1"=="-h" set JAVA_PRG=java
88
89
90 rem ##### start Xulu #####
91 %JAVA_PRG% -Xms300M -Xmx1000M -version:1.6 -cp %XULU_RESOURCE%;%LIB_ALL% -Djava.library.path=%LIB_NATIVE% -splash:resource\icons\xulu_start.png edu.bonn.xulu.XuluModellingPlatform %XULU_PARAMS% %*
92
93 endlocal

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26