@echo off
tasklist /v | find /i "java.exe" > buff
set /p r=<buff
echo %r%
pause
del buff
for /f "usebackq tokens=5 delims= " %%v in ('"%r%"') do echo %%v