thank you for explaining things. I was able to launch appium server. It even got connected to the device. But, failed while launching the appium driver with the error "Cannot bind to socket". Below is the code snippet which launches the appium server.
System.out.println("driver being created...");
CommandLine command = new CommandLine("cmd");
//command.addArgument("cmd");
command.addArgument("/c");
command.addArgument("C:\Users\mkarthik\Documents\selenium\Appium\node.exe");
command.addArgument("C:\Users\mkarthik\Documents\selenium\Appium\node_modules\appium\bin\appium.js\");
command.addArgument("--address");
command.addArgument("127.0.0.1");
command.addArgument("--bootstrap-port");
command.addArgument("4242");
command.addArgument("--no-reset");
command.addArgument("--log");
command.addArgument("C:\Users\mkarthik\workspace\Android\AppiumMobileAutomation\src\com\log\appiumLogs.txt");
resultHandler = new DefaultExecuteResultHandler();
executor = new DefaultExecutor();
executor.setExitValue(1);
executor.execute(command, resultHandler);
Please can you advice what needs to overcome this failure. Also i am unable to see anything getting stored in logs.
i have attached the appium server logs.
appium server logs.txt106 (7.1 KB)