# Start/Kill appium server within java code

**URL:** <https://discuss.appium.io/t/start-kill-appium-server-within-java-code/1610>\
**Category:** Support\
**Created:** [November 22, 2014, 8:33pm UTC](https://discuss.appium.io/t/start-kill-appium-server-within-java-code/1610 "2014-11-22T20:33:26Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Hassan\_Radi](https://discuss.appium.io/user_avatar/discuss.appium.io/hassan_radi/32/4077_2.png) [@Hassan\_Radi](https://discuss.appium.io/u/Hassan_Radi)\
**Post date:** [November 24, 2014, 9:15am UTC](https://discuss.appium.io/t/start-kill-appium-server-within-java-code/1610/7 "2014-11-24T09:15:30Z")

</div>

- You either run it from the terminal or automate the process of that using Java as I mentioned in [this post](https://discuss.appium.io/t/launching-and-stopping-appium-server-programmtically/700/2).
- If you are gonna use the donwnloaded UI Appium, then its location on your system is very relevant as you have to include that location when starting the server. If you are gonna download the Github version of Appium, then the UI Appium is irrelevant in this case and you just need to refer to the location of the Github repository.
- The answer is [there](https://discuss.appium.io/t/starting-appium-server-programmatically-on-mac/1615/3).

---

_[View the full topic](https://discuss.appium.io/t/start-kill-appium-server-within-java-code/1610)._
