# Invoke Java classes from Gatling

**URL:** <https://community.gatling.io/t/invoke-java-classes-from-gatling/2334>\
**Category:** Gatling (Open-Source)\
**Created:** [June 3, 2015, 5:55am UTC](https://community.gatling.io/t/invoke-java-classes-from-gatling/2334 "2015-06-03T05:55:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiva\_Krishnan](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Shiva\_Krishnan](https://community.gatling.io/u/Shiva_Krishnan)\
**Post date:** [June 3, 2015, 5:55am UTC](https://community.gatling.io/t/invoke-java-classes-from-gatling/2334/1 "2015-06-03T05:55:28Z")

</div>

Does Gatling support invoking Java classes ? References would be helpful.

thanks

---

<div class="post-metadata">

**Author:** ![jarrowwx](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jarrowwx](https://community.gatling.io/u/jarrowwx)\
**Post date:** [June 9, 2015, 5:50pm UTC](https://community.gatling.io/t/invoke-java-classes-from-gatling/2334/2 "2015-06-09T17:50:27Z")

</div>

Gatling is written in Scala, which is compatible with Java. But you have to make sure you know the difference between run-time and build-time code execution. Once you get that clear in your head, calling external Java class should be as easy as it is in Java. The steps should be roughly the same, for the most part.
