Launching of Appium server Through Code

I am trying to run appium server programatically from intelij. My code successfully runs and it says “Appium server started succefully” but

1st Thing:
i can not see it running in terminal.
The code i am using is

private static Process process;
private static String APPIUMSERVERSTART = “/bin/sh /Applications/ /Applications/ --shell --address --port 4723 --full-reset”;

System.out.println(“Appium server is started”);
Runtime runtime = Runtime.getRuntime();
process = runtime.exec(APPIUMSERVERSTART);
if (process != null) {
System.out.println(“Appium server started”);

2nd Thing:

when i run my desired capabilities at the time of connection establishing it fails with the following error :
org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to [/] failed: Connection refused (Connection refused)
Build info: version: ‘3.3.1’, revision: ‘5234b32’, time: ‘2017-03-10 09:04:52 -0800’

My desired capabilities are :
capabilities.setCapability(“appium-version”, “1.6.4”);
capabilities.setCapability(“platformName”, “Android”);

    //capabilities for Emulator
    // capabilities.setCapability("platformVersion", "5.1.1");
    capabilities.setCapability("deviceName", "Nexus 6");
    capabilities.setCapability("app", "/Users/tvs00023/Desktop/KwizzAdd.apk");
    driver = new AppiumDriver(new URL(""), capabilities);


I also tried to use Appium-Support library but i coudnt find which pacakage/library do i need to import in the project to run it successfuly as i get error while initializing AppiumServer object.
if i use this apium support libabry how would i write path in file as i am using macOS
as you can see i have the example for windows but confused about mac.
File file = new File(“D:/programfiles”);

Thanks in advance.

You can watch this video :