I am trying to run java -XshowSettings:properties -version. I require the java.vendor and java.version properties. I've been trying to store this information into a file by trying to stream it into the file using >>, however it will not work.
I've tried java -XshowSettings:properties -version >> properties.txt, however trying cat properties.txt yields an empty file. I've tried java -XshowSettings:properties -version | tee properties.txt, which yields the exact same results. Both times, the console is filled with all the information I need. 
I want to prevent it from printing to the console, and only to the file. In fact, I'd be fine with a variable too, though I'd prefer a file to keep track off.
 
    