I want to check to see if a computer has java version 1.4.1 or better installed on it. How can I do that from a C++ program? Is there a way to run the javac -version command from within a c program and check it's response?
This is a discussion on Running external commands from within c code within the C++ Programming forums, part of the General Programming Boards category; I want to check to see if a computer has java version 1.4.1 or better installed on it. How can ...
I want to check to see if a computer has java version 1.4.1 or better installed on it. How can I do that from a C++ program? Is there a way to run the javac -version command from within a c program and check it's response?
When in doubt, empty your magazine - Murphy's Laws Of Combat #7
See my popen example
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.