|
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 Execute JAVAVersionChecker |
|
53 %JRE_BIN_DIR%\java.exe -classpath %INSTALL_DIR% JAVAVersionChecker %1 %2 %3 %4 %5 %6 |
|
54 goto exitpoint |
|
55 |
|
56 :jreexecutablenotfound |
|
57 echo. |
|
58 echo ERROR: Java Runtime Environment Executable not found at %JRE_BIN_DIR% |
|
59 echo Configure the JRE location in ThemeInstallerMain.bat file and ThemeInstaller.bat. |
|
60 goto exitpoint |
|
61 |
|
62 :exitpoint |