I want to view a photo using Windows Photo Viewer ... I'm using ProcessBuilder
to do that, but the compiler does not accept this .
I tried typing mspaint
instead of windowsphotoviewer
and it worked.
So how can i do that ? here is the line of code i tried:
Process photo = new ProcessBuilder("mspaint","Capture.PNG").start();
Thank you very much for your help :)