java: javac 9+ print their version to stdout not stderr
java: javac 9+ print their version to stdout not stderr

Fixes: #2569

MathieuDuponchelle/meson,MathieuDuponchelle/meson,jpakkane/meson,mesonbuild/meson,becm/meson,QuLogic/meson,becm/meson,MathieuDuponchelle/meson,pexip/meson,jpakkane/meson,MathieuDuponchelle/meson,mesonbuild/meson,jpakkane/meson,pexip/meson,mesonbuild/meson,jpakkane/meson,pexip/meson,QuLogic/meson,mesonbuild/meson,pexip/meson,QuLogic/meson,mesonbuild/meson,becm/meson,becm/meson,QuLogic/meson,mesonbuild/meson,MathieuDuponchelle/meson,pexip/meson,pexip/meson,jpakkane/meson,mesonbuild/meson,mesonbuild/meson,jpakkane/meson,becm/meson,jpakkane/meson,pexip/meson,QuLogic/meson,becm/meson,MathieuDuponchelle/meson,pexip/meson,becm/meson,MathieuDuponchelle/meson,jpakkane/meson,MathieuDuponchelle/meson,mesonbuild/meson,QuLogic/meson,QuLogic/meson,QuLogic/meson,becm/meson,QuLogic/meson,pexip/meson,pexip/meson,mesonbuild/meson,jpakkane/meson,becm/meson,MathieuDuponchelle/meson,becm/meson