1 @rem |
|
2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 @rem All rights reserved. |
|
4 @rem This component and the accompanying materials are made available |
|
5 @rem under the terms of "Eclipse Public License v1.0" |
|
6 @rem which accompanies this distribution, and is available |
|
7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 @rem |
|
9 @rem Initial Contributors: |
|
10 @rem Nokia Corporation - initial contribution. |
|
11 @rem |
|
12 @rem Contributors: |
|
13 @rem |
|
14 @rem Description: |
|
15 @rem |
|
16 |
|
17 @ECHO OFF |
|
18 |
|
19 REM Configuration |
|
20 setlocal |
|
21 set JRE_BIN_DIR=%JAVA_6_HOME%\bin |
|
22 |
|
23 REM Verify that the JAVA_6_HOME exists |
|
24 if not exist %JAVA_6_HOME%\bin\java.exe goto lookforsymseej6 |
|
25 set JRE_BIN_DIR="%JAVA_6_HOME%\bin" |
|
26 goto jpathexists |
|
27 |
|
28 |
|
29 :lookforsymseej6 |
|
30 REM Verify that symsee java6 exists |
|
31 if not exist "C:\APPS\j2sdk_1.6.0_02\jre\bin\java.exe" goto lookforjava_home |
|
32 set JRE_BIN_DIR="C:\APPS\j2sdk_1.6.0_02\jre\bin" |
|
33 goto jpathexists |
|
34 |
|
35 |
|
36 :lookforjava_home |
|
37 REM Verify that the JAVA_HOME exists |
|
38 if not exist %JAVA_HOME%\bin\java.exe goto assigndefaultjrepath |
|
39 set JRE_BIN_DIR="%JAVA_HOME%\bin" |
|
40 goto jpathexists |
|
41 |
|
42 |
|
43 :assigndefaultjrepath |
|
44 set JRE_BIN_DIR=%JAVA_HOME%\bin" |
|
45 |
|
46 :jpathexists |
|
47 set INSTALL_DIR="." |
|
48 |
|
49 REM Verify that the JRE executable exists |
|
50 if not exist %JRE_BIN_DIR%\java.exe goto jreexecutablenotfound |
|
51 |
|
52 REM Verify that the theme installer exists |
|
53 if not exist %INSTALL_DIR%\ThemeInstaller.jar goto installernotfound |
|
54 |
|
55 REM Execute ThemeInstaller |
|
56 %JRE_BIN_DIR%\java -Dfile.encoding=ISO8859_1 -classpath %INSTALL_DIR%/ThemeInstaller.jar;%INSTALL_DIR%/lib//batik/batik-util.jar;%INSTALL_DIR%/lib/xml-apis-ext/xml-apis-ext.jar;%INSTALL_DIR%/lib/batik/batik-css.jar;%INSTALL_DIR%/lib/xerces/xercesImpl.jar;%INSTALL_DIR%/lib/icu/icu4j_3_2.jar com.nokia.tools.themeinstaller.ui.ThemeInstaller %1 %2 %3 %4 %5 %6 |
|
57 goto exitpoint |
|
58 |
|
59 :jreexecutablenotfound |
|
60 echo. |
|
61 echo ERROR: Java Runtime Environment not found at %JRE_BIN_DIR% |
|
62 echo Configure the JRE location in ThemeInstallerMain.bat file and ThemeInstaller.bat. |
|
63 goto exitpoint |
|
64 |
|
65 :installernotfound |
|
66 echo. |
|
67 echo ERROR: ThemeInstaller.jar not found at %INSTALL_DIR% |
|
68 echo Configure the install location in ThemeInstallerMain.bat file and ThemeInstaller.bat. |
|
69 goto exitpoint |
|
70 |
|
71 :exitpoint |
|