|
Lines 16-27
Link Here
|
| 16 |
@java -version > nul 2>&1 |
16 |
@java -version > nul 2>&1 |
| 17 |
@IF ERRORLEVEL 1 GOTO ERROR_JAVA_NOT_FOUND |
17 |
@IF ERRORLEVEL 1 GOTO ERROR_JAVA_NOT_FOUND |
| 18 |
|
18 |
|
|
|
19 |
|
| 20 |
|
| 19 |
@REM |
21 |
@REM |
| 20 |
@REM Check if the JRE contains a suitable JAXP |
22 |
@REM Check if the script is run in <AC>/bin directory. |
| 21 |
@REM |
23 |
@REM |
|
|
24 |
@if not exist ..\lib\config.jar GOTO ERROR_CONFIG_NOT_FOUND |
| 25 |
|
| 26 |
@REM Check if the JRE contains a suitable JAXP |
| 22 |
@java -classpath ..\lib\config.jar org.eclipse.tptp.platform.agentcontroller.config.TestJAXP > nul 2>&1 |
27 |
@java -classpath ..\lib\config.jar org.eclipse.tptp.platform.agentcontroller.config.TestJAXP > nul 2>&1 |
| 23 |
@IF ERRORLEVEL 1 GOTO ERROR_JAXP_NOT_SUPPORTED |
28 |
@IF ERRORLEVEL 1 GOTO ERROR_JAXP_NOT_SUPPORTED |
| 24 |
|
29 |
|
|
|
30 |
|
| 25 |
@REM |
31 |
@REM |
| 26 |
@REM Generate the configuration files |
32 |
@REM Generate the configuration files |
| 27 |
@REM |
33 |
@REM |
|
Lines 33-38
Link Here
|
| 33 |
@echo RESOLUTION: Make sure the PATH environment variable contains the location of a java executable |
39 |
@echo RESOLUTION: Make sure the PATH environment variable contains the location of a java executable |
| 34 |
@goto END |
40 |
@goto END |
| 35 |
|
41 |
|
|
|
42 |
:ERROR_CONFIG_NOT_FOUND |
| 43 |
@echo ERROR: Cannot find ..\lib\config.jar. |
| 44 |
@echo RESOLUTION: Make sure you are running this script in <AC>/bin directory. |
| 45 |
@goto END |
| 46 |
|
| 36 |
:ERROR_JAXP_NOT_SUPPORTED |
47 |
:ERROR_JAXP_NOT_SUPPORTED |
| 37 |
@echo ERROR: The Java Runtime in use does not contain a suitable JAXP feature |
48 |
@echo ERROR: The Java Runtime in use does not contain a suitable JAXP feature |
| 38 |
@echo RESOLUTION: Use a JRE which supports the JAXP feature |
49 |
@echo RESOLUTION: Use a JRE which supports the JAXP feature |