How to find 32 bit or 64 bit java command prompt Posted on February 10, 2014 by admin java -version 2>&1 | find "64-Bit" >nul: if errorlevel 1 ( echo 32-Bit ) else ( echo 64-Bit )