-
Notifications
You must be signed in to change notification settings - Fork 26
/
procamcalib-oceanlook.cmd
35 lines (27 loc) · 1.09 KB
/
procamcalib-oceanlook.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
@echo off
rem PGRFlyCapture and OpenCV, both compiled with Intel's Compiler,
rem do not play nice with each other...
set KMP_DUPLICATE_LIB_OK=TRUE
rem Under Windows, Java uses DirectX by default, but your video driver
rem might work better with OpenGL than DirectX. Try to use this option...
rem set OPTIONS=-Dsun.java2d.opengl=True
rem Required options for JDK 17+ since not yet supported by NetBeans
rem set "OPTIONS=--add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED"
set JAVA=%SystemRoot%\system32\java
if exist %JAVA%.exe goto CHECKSERVER
set JAVA=java
:CHECKSERVER
%JAVA% -server -version
if errorlevel 1 goto DEFAULT
:SERVER
start %JAVA%w -server %OPTIONS% -jar "%~dp0\modules\procamcalib.jar" --laf javax.swing.plaf.metal.MetalLookAndFeel %*
if errorlevel 1 goto PAUSE
goto END
:DEFAULT
echo WARNING: Server JVM not available. Executing with default JVM...
%JAVA%w %OPTIONS% -jar "%~dp0\modules\procamcalib.jar" --laf javax.swing.plaf.metal.MetalLookAndFeel %*
if errorlevel 1 goto PAUSE
goto END
:PAUSE
pause
:END