IDEA-210993 IDEA with JBR 11 starts with error via idea.bat

PY-35103 Running "pycharm.bat" complains "cannot find VM options file" if the custom VM options file was created
This commit is contained in:
Vladimir.Orlov
2019-04-16 15:34:34 +03:00
parent 00913bf027
commit ed193714a8
@@ -58,11 +58,20 @@ IF NOT EXIST "%JAVA_EXE%" (
SET JRE=%JDK%
IF EXIST "%JRE%\jre" SET JRE=%JDK%\jre
IF EXIST "%JRE%\lib\amd64" SET BITS=64
IF EXIST "%JRE%\lib\amd64" (
SET BITS=64
) ELSE (
FOR /F "eol=# usebackq delims=" %%i IN ("%JRE%\release") do (
ECHO.%%i | findstr /C:"1.8" 1>nul
IF ERRORLEVEL 1 SET BITS=64
goto :jvmOptions
)
)
:: ---------------------------------------------------------------------
:: Collect JVM options and properties.
:: ---------------------------------------------------------------------
:jvmOptions
IF NOT "%@@product_uc@@_PROPERTIES%" == "" SET IDE_PROPERTIES_PROPERTY="-Didea.properties.file=%@@product_uc@@_PROPERTIES%"
:: explicit