# How to call java interface name init?

**URL:** <https://dev.lucee.org/t/how-to-call-java-interface-name-init/11050>\
**Category:** support\
**Created:** [September 8, 2022, 2:30am UTC](https://dev.lucee.org/t/how-to-call-java-interface-name-init/11050 "2022-09-08T02:30:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaia-jyh](https://dev.lucee.org/user_avatar/dev.lucee.org/gaia-jyh/32/3410_2.png) [@gaia-jyh](https://dev.lucee.org/u/gaia-jyh)\
**Post date:** [September 8, 2022, 2:30am UTC](https://dev.lucee.org/t/how-to-call-java-interface-name-init/11050/1 "2022-09-08T02:30:17Z")

</div>

i want call geotool init, same name with lucee create Constructor  
i got error message “No matching Constructor for org.geotools.util.factory.GeoTools() found”

 ![image](https://dev.lucee.org/uploads/default/original/2X/1/15820a838c90f976e0156df13175bdd384726991.png)

![image](https://dev.lucee.org/uploads/default/original/2X/3/30508845331dc8ed082c83af918b2335e63f7ed5.png)

[https://docs.geotools.org/latest/userguide/welcome/upgrade.html](https://docs.geotools.org/latest/userguide/welcome/upgrade.html)  
geotool example code

 ![image](https://dev.lucee.org/uploads/default/original/2X/a/a6b93e1a9f0ed86733b41b8beecdd81e119455b7.png)

_Don’t forget to tell us about your stack!_

**OS** : win 10  
**Java Version** : 11.0.11 (AdoptOpenJDK) 64bit  
**Tomcat Version** : WildFly / Undertow - 2.2.3.Final  
**Lucee Version** : Lucee 5.3.8.206

---

<div class="post-metadata">

**Author:** ![bdw429s](https://dev.lucee.org/user_avatar/dev.lucee.org/bdw429s/32/37_2.png) [@bdw429s](https://dev.lucee.org/u/bdw429s)\
**Post date:** [September 8, 2022, 2:49am UTC](https://dev.lucee.org/t/how-to-call-java-interface-name-init/11050/2 "2022-09-08T02:49:28Z")

</div>

I don’t know if this holds true for Lucee, but Adobe’s docs has this note:

> The init method is not a method of the object, but a ColdFusion identifier that calls the new function on the class constructor. So, if a Java object has an init method, a name conflict exists and **you cannot call the object init method.**

[https://helpx.adobe.com/coldfusion/developing-applications/using-web-elements-and-external-objects/integrating-jee-and-java-elements-in-cfml-applications/using-java-objects.html](https://helpx.adobe.com/coldfusion/developing-applications/using-web-elements-and-external-objects/integrating-jee-and-java-elements-in-cfml-applications/using-java-objects.html)

You’re most likely bet is to call it directly using Java reflection.
