My use case is to use process builder in java springboot to open a test url in google chrome. I have explored various commands to do the same but not able to achieve a desired result. I have explored the following ways to achieve the same. Can anyone suggest some more way of doing this both in Mac & Windows?
I have tried these 2 things, but will need a more robust way of doing it.
Error that I am receiving while using it :
/home/dell/Dokument/GitHub/Vaadin-DL4J-YOLO-Camera-Mail-Reporter/Vaadin-DL4J-YOLO-Camera-Mail-Reporter/Darknet/darknet
detect
cfg/yolov2-tiny.cfg
weights/yolov2-tiny.weights
data/cameraSnap.png
-thresh 0.3
ERROR!
Exited with error code : 0
I am using these 2 methods in IntelliJ:
ProcessBuilder ProcessBuilder pb = new ProcessBuilder("./xyz", "devices", "-l")
OR
ProcessBuilder ProcessBuilder pb =
new ProcessBuilder("myCommand", "myArg1", "myArg2");
Can anyone suggest a way to do this in both mac & windows ?
I am not sure if this is what u r asking but I can share some commands which u can try to open a URL in a given browser using process builder in mac. (for windows) ProcessBuilder processBuilder = new ProcessBuilder("cmd", "/c", "start", browser, url);
(for mac) ProcessBuilder processBuilder = new ProcessBuilder("open", "-a", browser, url);