Details
Description
If you set java option in setenv.bat with whitespaces, inserted between double-quotation symobols like this:
set JAVA_OPTS=%JAVA_OPTS% -Dlog4j.configuration="C:\programm files\karaf\etc\log4j.properties"
You'll get error on startup
files\karaf\etc\log4j.properties" " was unexpected at this time.
This goes from karaf.bat line:
if "%JAVA_OPTS%" == "" set JAVA_OPTS=%DEFAULT_JAVA_OPTS%
quote symbols wrongly associated in "%JAVA_OPTS%" during script execution