I am trying to see whether or not the installed java version is good to run from c++.
I looked everywhere, yet neither pipes nor redirecting the system() call using "cmd + > txtfile.txt" seem to work with the output of "java -version".
I have no idea why, maybe the output stream can't be redirected?
All help is very much appreciated!