How to get java version and want to get \'6\' out of java version from batch file. I tried below script, but it didn\'t work.
REM check java exists using
it will be surly idiot but why do not just print JAVA_HOME path ?