跟随https://octave.1599824.n4.nabble.com/Octave-4-installer-doesn-t-detect-JRE-at-install-time-td4670684.html和:https://superuser.com/questions/1382158/on-windows-why-java-version-return-error-opening-registry-key-software-javas
现在它应该显示正确的版本而没有错误
如果ans为空,java应该现在可以工作