/[xulu]/trunk/startXULU.bat
ViewVC logotype

Contents of /trunk/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
File MIME type: text/plain
File size: 3889 byte(s)
First Commit, corresponds to Revision 1008 of Wikisquare-SVN 
1 @echo off
2 setlocal
3
4 set LIB_ROOT="lib"
5 set SCHMITZM_LIB_ROOT="E:\Arbeit\SCHMITZM\Trunk\lib"
6
7 rem ###################################################################
8 rem ############# Xulu library paths and parameters ###############
9 rem ###################################################################
10 set XULU_LIB=%LIB_ROOT%\xulu\XuluModellingPlatform.jar
11 if "%1"=="/useXuluJar" set XULU_LIB=%LIB_ROOT%\xulu\XuluModellingPlatform.jar
12 if "%1"=="/useXuluClasses" set XULU_LIB=classes
13
14 set XULU_REGISTRY=registry.xif
15 set XULU_LANGUAGE=de
16 set XULU_WORK_DIR=C:\
17 set XULU_START_SCRIPTS=
18 set XULU_RESOURCE=resource
19
20 rem ####################################################
21 rem ############# External libraries ###############
22 rem ####################################################
23
24 rem ##### Where to find "Java Advanced Imaging" (and ImageIO) #####
25 set JAI_ROOT=%LIB_ROOT%\jai-1_1_3\lib
26
27 rem ##### Where to find "SCHMITZM library" #####
28 set SCHMITZM_ROOT=%LIB_ROOT%\schmitzm
29
30 rem ##### Where to find "JINI" #####
31 set JINI_ROOT=%LIB_ROOT%\jini
32
33 rem ##### Where to find "R" #####
34 set R_ROOT=%LIB_ROOT%\JavaRInterface
35
36
37 rem ##### combine the external libs #####
38 set SCHMITZM_LIB=%SCHMITZM_ROOT%\schmitzm.jar
39 set JAI_LIB=%JAI_ROOT%\*
40 set JINI_LIB=%JINI_ROOT%\lib\*
41 rem set JINI_LIB=%JINI_ROOT%\lib\*;%JINI_ROOT%\lib-dl\*;%JINI_ROOT%\lib-ext\*
42 set R_LIB=%R_ROOT%\JRI.jar;%R_ROOT%\libjri.so;%R_ROOT%\libR.so
43
44 set LIB_ALL=%XULU_LIB%;%SCHMITZM_LIB%;%JAI_LIB%;%JINI_LIB%;%R_LIB%
45
46
47 rem ####################################################
48 rem ####### External libraries of SCHMITZM #########
49 rem ####################################################
50 set LIB_ROOT=%SCHMITZM_LIB_ROOT%
51
52 rem ##### Where to find "GeoTools" #####
53 set GT_ROOT=%LIB_ROOT%\gt2-2.4.4
54 rem ##### Where to find gt2-arcgrid-2.1.x.jar (from SpearfishDemo) #####
55 set GT_ARCGRID_ROOT=%LIB_ROOT%\geotoolsArcGrid
56
57 rem ##### Where to find "Log4j" #####
58 set LOG4J_ROOT=%LIB_ROOT%\log4j-1.2.14
59
60 rem ##### Where to find "JINI" #####
61 set JINI_ROOT=%LIB_ROOT%\jini
62
63 rem ##### Where to find "jFreeChart" #####
64 set JFREECHART_ROOT=%LIB_ROOT%\jFreeChart
65
66 rem ##### combine the external libs #####
67 set GT_LIB=%GT_ROOT%\*
68 set GT_LIB=%GT_LIB%;%GT_ARCGRID_ROOT%\gt2-arcgrid-2.3.0-M0.jar;%GT_ARCGRID_ROOT%\junit-4.4.jar
69 set LOG4J_LIB=%LOG4J_ROOT%\log4j-1.2.14.jar
70 set JINI_LIB=%JINI_ROOT%\lib\*
71 rem set JINI_LIB=%JINI_ROOT%\lib\*;%JINI_ROOT%\lib-dl\*;%JINI_ROOT%\lib-ext\*
72 set JFREECHART_LIB=%JFREECHART_ROOT%\jfreechart-1.0.6.jar;%JFREECHART_ROOT%\jcommon-1.0.10.jar
73
74 set LIB_ALL=%LIB_ALL%;%GT_LIB%;%LOG4J_LIB%;%JINI_LIB%;%JFREECHART_LIB%
75
76 rem ##### combine the native libs #####
77 set JAI_NATIVE=%JAI_ROOT%\native_win
78
79 set LIB_NATIVE=%JAI_NATIVE%
80
81
82 rem ##### combine Xulu starting parameters #####
83 set XULU_PARAMS=
84 if not "%XULU_LANGUAGE%"=="" set XULU_PARAMS=%XULU_PARAMS% -l %XULU_LANGUAGE%
85 if not "%XULU_REGISTRY%"=="" set XULU_PARAMS=%XULU_PARAMS% -rf %XULU_REGISTRY%
86 if not "%XULU_MODELS_LIB%"=="" set XULU_PARAMS=%XULU_PARAMS% -d %XULU_MODELS_LIB%
87 if not "%XULU_WORK_DIR%"=="" set XULU_PARAMS=%XULU_PARAMS% -w "%XULU_WORK_DIR%"
88 if not "%XULU_START_SCRIPTS%"=="" set XULU_PARAMS=%XULU_PARAMS% -s "%XULU_START_SCRIPTS%"
89
90
91 rem ##### determine java interpreter #####
92 set JAVA_PRG=start /B javaw
93 rem set JAVA_PRG=java
94 rem ##### for command line help, use java instead of javaw #####
95 if "%1"=="/?" set JAVA_PRG=java
96 if "%1"=="?" set JAVA_PRG=java
97 if "%1"=="-?" set JAVA_PRG=java
98 if "%1"=="--help" set JAVA_PRG=java
99 if "%1"=="-h" set JAVA_PRG=java
100
101
102 rem ##### start Xulu #####
103 %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% %*
104
105 endlocal

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26