forked from informatici/openhospital-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.cmd
39 lines (29 loc) · 1.1 KB
/
startup.cmd
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
@echo off
set OH_HOME=%~dps0
REM if java is not in the system path set JAVA_HOME variable
REM set JAVA_HOME=%OH_HOME%jvm\bin
for %%i in (java.exe) do set JAVA=%%~s$PATH:i
IF NOT DEFINED JAVA (
@echo Java not found
EXIT /B
) ELSE (
@Echo Java found at %JAVA%
)
set OH_BIN=%OH_HOME%bin
set OH_LIB=%OH_HOME%lib
set OH_BUNDLE=%OH_HOME%bundle
set OH_REPORT=%OH_HOME%rpt
set CLASSPATH=%OH_BIN%
SETLOCAL ENABLEDELAYEDEXPANSION
FOR %%A IN (%OH_LIB%\*.jar) DO (
set CLASSPATH=!CLASSPATH!;%%A
)
set CLASSPATH=%CLASSPATH%;%OH_BUNDLE%
set CLASSPATH=%CLASSPATH%;%OH_REPORT%
set CLASSPATH=%CLASSPATH%;%OH_BIN%;%OH_BIN%\OH-gui.jar
IF (%PROCESSOR_ARCHITECTURE%)==(AMD64) (set NATIVE_PATH=%OH_LIB%\native\Win64) ELSE (set NATIVE_PATH=%OH_LIB%\native\Windows)
cd /d %OH_HOME%\
REM set JAVA=C:\PROGRA~2\Java\jdk1.6.0_29\bin\java.exe
@echo on
REM start /min %JAVA_HOME%\java -showversion -Dsun.java2d.dpiaware=false -Djava.library.path=%NATIVE_PATH% -classpath %CLASSPATH% org.isf.menu.gui.Menu
start /min %JAVA% -showversion -Dsun.java2d.dpiaware=false -Djava.library.path=%NATIVE_PATH% -classpath %CLASSPATH% org.isf.menu.gui.Menu