# Executing Ansible from Java

**URL:** <https://forum.ansible.com/t/executing-ansible-from-java/18710>\
**Category:** Ansible Developer\
**Created:** [July 8, 2015, 12:45am UTC](https://forum.ansible.com/t/executing-ansible-from-java/18710 "2015-07-08T00:45:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![john](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@john](https://forum.ansible.com/u/john)\
**Post date:** [July 8, 2015, 12:45am UTC](https://forum.ansible.com/t/executing-ansible-from-java/18710/1 "2015-07-08T00:45:30Z")

</div>

Executing Ansible Command from Java without defining absolute path or etc…

Open Source Project Ansible execution from Java without installing it…like Jar, or Spring Framework…

How to execute Ansible commands (i.e. host, cp, shell, etc) from Maven Project.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [July 9, 2015, 7:23pm UTC](https://forum.ansible.com/t/executing-ansible-from-java/18710/2 "2015-07-09T19:23:17Z")

</div>

Might be easier to answer your question if you describe the specific problem you are trying to solve..

Lots of ways to run from java. Java api for executing processes would do. Or perhaps install Tower and call it's rest api.

More detail about what you need to do would help others suggest something appropriate. Hope this helps.
