# Java code to launch appium server through eclipse on OS X

**URL:** <https://discuss.appium.io/t/java-code-to-launch-appium-server-through-eclipse-on-os-x/6691>\
**Category:** Issues/Bugs\
**Created:** [October 22, 2015, 6:34pm UTC](https://discuss.appium.io/t/java-code-to-launch-appium-server-through-eclipse-on-os-x/6691 "2015-10-22T18:34:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lostinhogwarts](https://discuss.appium.io/letter_avatar_proxy/v4/letter/l/53a042/32.png) [@lostinhogwarts](https://discuss.appium.io/u/lostinhogwarts)\
**Post date:** [October 22, 2015, 7:45pm UTC](https://discuss.appium.io/t/java-code-to-launch-appium-server-through-eclipse-on-os-x/6691/3 "2015-10-22T19:45:38Z")

</div>

**Where are you getting the Executor, DefaultExecutor, DefaultExecuteResultHandler, and CommandLine classes from?** I just borrowed ideas from other threads on this blog that were discussing issues similar to the one I’ve been facing. This is where I’ve been getting the help from:  
[Launching and stopping appium server programmtically](https://discuss.appium.io/t/launching-and-stopping-appium-server-programmtically/700/2)  
and  
[http://megettingerror.blogspot.in/2015/01/java-code-to-start-appium-server-on-mac.html](http://megettingerror.blogspot.in/2015/01/java-code-to-start-appium-server-on-mac.html)  
but it doesn’t seem to work of my code. Perhaps I’m missing something else?

**What is the code that sets up your Appium Driver (what are the lines involved that say new AndroidDriver(…) or new IOSDriver(…))?** I’m using appium’s DesiredCapabilities API that allows me to set up the iOS driver.

---

_[View the full topic](https://discuss.appium.io/t/java-code-to-launch-appium-server-through-eclipse-on-os-x/6691)._
