Triggering Appium from the command line via Java code

I have tried that but it gives me an error like

With the file object

Passing as a String