Not able to launch Appium 1.5.3 from java code on MAC

I am trying to start appium 1.5.3 from java code. I am getting following error-

(function (exports, require, module, __filename, __dirname) { import { getLogger } from ‘appium-logger’;

SyntaxError: Unexpected token import
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions…js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (/Applications/
at Module._compile (module.js:413:34)
at Object.Module._extensions…js (module.js:422:10)

My MAC OS Version is 10.11.6. Kindly help.

Also can I automate on iPad having iOS 10.2 using Appium 1.5.3 (Ara).
Or do I need to update Appium to 1.6.3

you can look here: Launching and stopping appium server programmtically
Also there is a bunch of link with the same doubt for Mac.

You need a new version of appium for iOS 10.2 and beyond.