Skip to content

Commit

Permalink
Add support for JAVA_HOME with spaces (MID-4732)
Browse files Browse the repository at this point in the history
Note that JAVA_HOME should *not* be enclosed in quotes!
So

- legal: set JAVA_HOME=c:\java\jre 8
- illegal: set JAVA_HOME="c:\java\jre 8"
  • Loading branch information
mederly committed Jul 2, 2018
1 parent 01a5be4 commit eae4c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/src/main/bin/midpoint.bat
Expand Up @@ -49,7 +49,7 @@ echo Using JAVA_OPTS: "%JAVA_OPTS%"
echo Using parameters: "%*"
echo.
echo Starting midPoint.
start /b %RUN_JAVA% -jar %JAVA_OPTS% -Xms2048M -Xmx4096M -Dpython.cachedir="%MIDPOINT_HOME%\tmp" -Djavax.net.ssl.trustStore="%MIDPOINT_HOME%\keystore.jceks" -Djavax.net.ssl.trustStoreType=jceks -Dmidpoint.home="%MIDPOINT_HOME%" "%LIB_DIR%\midpoint.war" %* > "%BOOT_OUT%" 2>&1
start /b "midPoint" "%RUN_JAVA%" -jar %JAVA_OPTS% -Xms2048M -Xmx4096M -Dpython.cachedir="%MIDPOINT_HOME%\tmp" -Djavax.net.ssl.trustStore="%MIDPOINT_HOME%\keystore.jceks" -Djavax.net.ssl.trustStoreType=jceks -Dmidpoint.home="%MIDPOINT_HOME%" "%LIB_DIR%\midpoint.war" %* > "%BOOT_OUT%" 2>&1
goto end

:doStop
Expand Down

0 comments on commit eae4c13

Please sign in to comment.