# Javax.naming ImportError: No module named naming

**URL:** <https://forum.inductiveautomation.com/t/javax-naming-importerror-no-module-named-naming/35558>\
**Category:** Ignition\
**Created:** [June 11, 2020, 3:54pm UTC](https://forum.inductiveautomation.com/t/javax-naming-importerror-no-module-named-naming/35558 "2020-06-11T15:54:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [June 11, 2020, 3:54pm UTC](https://forum.inductiveautomation.com/t/javax-naming-importerror-no-module-named-naming/35558/1 "2020-06-11T15:54:33Z")

</div>

I am trying to move some code from 7.9.14 to 8.0.12 that interacts with Active Directory. The old code uses

`from javax.naming import *`

but I am receiving an error

`ImportError: No module named naming`

I cannot find anything on the web that says the naming package is not in OpenJDK.

Any help would be greatly appreciated.

Also does OpenJDK have a API page like Oracle does where you can browse through all the packages?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 11, 2020, 4:00pm UTC](https://forum.inductiveautomation.com/t/javax-naming-importerror-no-module-named-naming/35558/2 "2020-06-11T16:00:54Z")

</div>

Hmm, we might not package this module with our custom runtime.

@jcoffman can you verify that? The module is `java.naming`.

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [June 11, 2020, 4:45pm UTC](https://forum.inductiveautomation.com/t/javax-naming-importerror-no-module-named-naming/35558/3 "2020-06-11T16:45:31Z")

</div>

For some reason it will not let me import \*. If I explicitly import the class names then I can get it to work.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 11, 2020, 4:54pm UTC](https://forum.inductiveautomation.com/t/javax-naming-importerror-no-module-named-naming/35558/4 "2020-06-11T16:54:41Z")

</div>

That’s probably a Python/Jython change from version 2.5 (in 7.9) to 2.7 (in 8.0), then.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 11, 2020, 5:00pm UTC](https://forum.inductiveautomation.com/t/javax-naming-importerror-no-module-named-naming/35558/5 "2020-06-11T17:00:25Z")

</div>

That makes more sense than the module not being included in our runtime, seeing as we use it for AD user profiles…

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [June 11, 2020, 5:43pm UTC](https://forum.inductiveautomation.com/t/javax-naming-importerror-no-module-named-naming/35558/6 "2020-06-11T17:43:26Z")

</div>

Yeah, I just confirmed the module `java.naming` is present in the bundled JRE

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 11, 2020, 6:53pm UTC](https://forum.inductiveautomation.com/t/javax-naming-importerror-no-module-named-naming/35558/7 "2020-06-11T18:53:19Z")

</div>

I’ve never known wildcards to work when importing from java classes. What version of Ignition had that?
