Support log for Windows folks running refine.bat

Too often we need to ask multiple questions from folks running OpenRefine on Windows.  Let's make this easier for us from a support perspective and just ask the users to paste the contents of the support.log file to us.  We can expand on any support.log enhancements later as we come across the need to add more.
This commit is contained in:
Thad Guidry 2017-12-22 11:07:35 -06:00 committed by GitHub
parent fb3620b3d9
commit 658f71fe21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,19 @@ for /f "tokens=1,* delims==" %%a in (refine.ini) do (
set %%a=%%b set %%a=%%b
) )
rem --- Log for troubleshooting ------------------------------------------
for /f "tokens=*" %%a in ('java -version 2^>^&1 ^| find "version"') do (set JVERSION=%%a)
for /f "usebackq skip=1 tokens=*" %%i in (`wmic os get FreePhysicalMemory ^| findstr /r /v "^$"`) do @set /A freeRam=%%i/1024
(
echo -----------------------
echo PROCESSOR_ARCHITECTURE = %PROCESSOR_ARCHITECTURE%
echo JAVA_HOME = %JAVA_HOME%
echo java -version = %JVERSION%
echo freeRam = %freeRam%M
echo REFINE_MEMORY = %REFINE_MEMORY%
echo -----------------------
) > support.log
rem --- Check JAVA_HOME --------------------------------------------- rem --- Check JAVA_HOME ---------------------------------------------
if not "%JAVA_HOME%" == "" goto gotJavaHome if not "%JAVA_HOME%" == "" goto gotJavaHome