# Creating a .modl file of external Java Drivers code using Gradle in IntelliJ

**URL:** <https://forum.inductiveautomation.com/t/creating-a-modl-file-of-external-java-drivers-code-using-gradle-in-intellij/93210>\
**Category:** Module Development\
**Created:** [July 15, 2024, 6:44am UTC](https://forum.inductiveautomation.com/t/creating-a-modl-file-of-external-java-drivers-code-using-gradle-in-intellij/93210 "2024-07-15T06:44:29Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [July 30, 2024, 3:08pm UTC](https://forum.inductiveautomation.com/t/creating-a-modl-file-of-external-java-drivers-code-using-gradle-in-intellij/93210/21 "2024-07-30T15:08:04Z")

</div>

> [@Krutika\_Jathe](#):
>
> elaborative

> [@Creating a basic module just to add a java class](https://forum.inductiveautomation.com/t/creating-a-basic-module-just-to-add-a-java-class/51428):
>
> I’m trying to add a jar file to ignition so that i can use it in scripting. I don’t have experience at all in this area, but i was able to download the examples from github and to create a module from that in Eclips IDE. but how can i add the jar file to the example project so that i can be able to call it later in ignition. i have a jposservice.jar and i want to be able to use in scripting import java import jpos What do i need to do to be able to add that to the project and create a modu…

If you want a full example, my Orekit module exposes a full set of Java classes through scripting. It’s an 8.0 module, but most everything should still apply.

The external decencies are listed in the common module’s `build.gradle`, and are loaded into Ignition’s script manager through a custom `ExtendedScriptManager`.

> **[GitHub - benmusson/ignition-orekit-module: Allows an Ignition gateway to provide OREKIT...](https://github.com/benmusson/ignition-orekit-module)**
>
> Allows an Ignition gateway to provide OREKIT (ORbits Extrapolation KIT) data for connected clients.

---

_[View the full topic](https://forum.inductiveautomation.com/t/creating-a-modl-file-of-external-java-drivers-code-using-gradle-in-intellij/93210)._
