0023227: New Draw Harness command to estimate current geometry complexity of OpenGL...
[occt.git] / samples / java / RUN.bat
CommitLineData
cf236913 1@ECHO OFF
2
3call "%~dp0env.bat"
4
5IF NOT DEFINED CASROOT GOTO ERR_CASROOT
6
7SET ROOT=%CASROOT%\..
8
9SET SAMPLEHOME=%ROOT%\samples\java
10
11SET LIB_DIR=win32\vc8\lib
12SET JAR_DIR=win32
13
14IF NOT EXIST "%JAR_DIR%\CASCADESamples.jar" GOTO ERR_MAKE
15
16SET OLD_PATH=%PATH%
17set PATH=%~dp0;%SAMPLEHOME%\%LIB_DIR%;%PATH%
18
19IF NOT EXIST "%SAMPLEHOME%\win32\vc8\obj" SET JAVAHOME=%ROOT%\3rdparty\win32\java
20
21IF NOT DEFINED JAVAHOME GOTO ERR_JAVAHOME
22
23SET PATH=%JAVAHOME%\bin;%JAVAHOME%\jre\bin;%JAVAHOME%\jre\bin\client;%PATH%
24
25cd java
26echo "javaw.exe -Xss1m -classpath .;%SAMPLEHOME%\%JAR_DIR%\CASCADESamples.jar SamplesStarter"
27start javaw.exe -Xss1m -classpath .;%SAMPLEHOME%\%JAR_DIR%\CASCADESamples.jar SamplesStarter
28pause
29cd ..
30SET PATH=%OLD_PATH%
31
32GOTO END
33
34:ERR_CASROOT
35ECHO Environment variable "CASROOT" not defined. Abort.
36pause
37GOTO END
38
39:ERR_JAVAHOME
40ECHO Environment variable "JAVAHOME" not defined. Abort.
41pause
42GOTO END
43
44:ERR_MAKE
45ECHO File %JAR_DIR%\CASCADESamples.jar not found."
46ECHO Probably you don't compile the application. Execute %JAR_DIR\build.bat
47pause
48GOTO END
49
50:END