what i want is i should get a result by executing a command , for now java -version
i have implemented the solution in vb.net where i have created the process and passed the command
this gives the exact output as executing java -version at the cmd(command prompt)
i was trying to implement same solution in java by creating process
there are two ways one is through it is executing also but how to catch the return value i mean the actual output not the instance of
another way is through this
but this again has the same problem
note : please don't give me solutions like put the java-version in a bat file and run that file ...because this doesn't fit into my requirements...
can any one help ?