![]() ![]() String commands = īufferedReader stdInput = new BufferedReader(new InputStreamReader(proc.getInputStream())) īufferedReader stdError = new BufferedReader(new InputStreamReader(proc. Here is my code: Runtime rt = Runtime.getRuntime() However, I'm not aware of how I can get the output the command returns. Registers a new virtual-machine shutdown hook thread.I'm using the runtime to run command prompt commands from my Java program. The current runtime can be obtained from the getRuntime() method. In Java, the Runtime class is used to interact with Every Java application that has a single instance of class Runtime that allows the application to interface with the environment in which the application is running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |