This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Am trying to print the java version using the following code. Could some one help me out with this. I used "java -version" as an example. I am trying to print the version of a software on my machine. Somehow exec command is not taking the argument or am doing something wrong (which i think is the case). If i just type in "java" it prints the output.
Joined: Jul 28, 2004
I solved the problem as the output was printing to the error stream instead of the input stream!