I am trying to launch appium service through this code
service = new AppiumServiceBuilder()
.usingDriverExecutable(new File("C:/Program Files/nodejs/node.exe"))
.withAppiumJS(new File("C:/Program Files (x86)/Appium/node_modules/appium/bin/appium.js"))
.withLogFile(new File("./AppiumLogs.txt"))
.withIPAddress("127.0.0.2")
.usingPort(4925);
service.build().start();
but i am getting this error
io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: C:\Program Files\nodejs\node.exe Arguments: [C:\Program Files (x86)\Appium\node_modules\appium\bin\appium.js, --port, 4925, --address, 127.0.0.2, --log, D:\Xfinity-Workspace\CVP\.\AppiumLogs.txt]
Process output: ←[36minfo←[39m: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
←[36minfo←[39m: Appium REST http interface listener started on 127.0.0.2:4925
←[36minfo←[39m: [debug] Non-default server args: {"address":"127.0.0.2","port":4925,"log":"D:\\Xfinity- Workspace\\CVP\\.\\AppiumLogs.txt"}
←[36minfo←[39m: Console LogLevel: debug
←[36minfo←[39m: File LogLevel: debug
can anyone help me ??