![]() While ((line = input.readLine()) != null) ) Process process = Runtime.getRuntime().exec("echo password | sudo -S open -a safari") īufferedReader input = new BufferedReader(new InputStreamReader(pb.getInputStream())) ![]() ![]() Here is a sample as how I am running the command it’s not the exact command which I am running but the command format is same. I am working on app in javafx, I am trying open an application using a command in terminal, I am running the command using my java code my command have some variable it’s have path of my installer file which will not always be same because file name can be different as the builds are updated.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |