-
Notifications
You must be signed in to change notification settings - Fork 0
/
hs-view.bat
executable file
·47 lines (34 loc) · 1.1 KB
/
hs-view.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
REM ====================================
REM Batch for starting HS-IDE on Windows
REM ====================================
REM ==================================
REM SET JEHEP_HOME TO THE INSTALLATION DIRECTORY
REM The default is the current directory
REM If you install in in some other location, set it like this
REM current directory
set JEHEP_HOME=.
set JEHEP_HOME_PATH=%CD%
echo Current directory %JEHEP_HOME_PATH%
set MAX_JAVA_MEMORY=2048
set CMD_LINE_ARGS=
:args
if "%1"=="" goto start
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto args
echo ARGS: %CMD_LINE_ARGS%
:start
set JEHEP_JAR=%JEHEP_HOME%
set JEHEP_CLASSPATH=
if exist %JEHEP_JAR% set JEHEP_CLASSPATH=%JEHEP_JAR%
REM take first the main class
set LOCALCLASSPATH=%JEHEP_CLASSPATH%
REM link LIBRARIES in lib directory
for %%i in ("%JEHEP_HOME%\*.jar") do call "%JEHEP_HOME%\lcp.bat" %%i
REM TAKE ALL
SET OPTJJ=-Djava.library.path=%LIBJEHEP%
set CLASSPATH=%LOCALCLASSPATH%
set LOCALCLASSPATH=
ECHO Start HS-IDE ..
java -mx%MAX_JAVA_MEMORY%m -classpath %CLASSPATH% %OPTJJ% -Djehep.home=%JEHEP_HOME% probrowser.Main %CMD_LINE_ARGS%