# How to deal with conflicting classes

**URL:** <https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794>\
**Category:** Libraries\
**Created:** [March 19, 2020, 1:27pm UTC](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794 "2020-03-19T13:27:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [March 19, 2020, 1:27pm UTC](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794/1 "2020-03-19T13:27:32Z")

</div>

I have imported the poi library, a library which deals with parsing word documents, however the library itself uses a class called table which is shared with the main processing library, which I would also like to make use of.

This causes and ambiguous class error.

How do I get around this issue.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [March 19, 2020, 2:28pm UTC](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794/2 "2020-03-19T14:28:06Z")

</div>

> [@paulgoux](#):
>
> How do I get around this issue.

You can access poi’s Table class using its “fully qualified name” instead of using keyword `import` for it:

> **[Naming a Package (The Java™ Tutorials \>        
            Learning the...](https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html)**
>
> This beginner Java tutorial describes fundamentals of programming in the Java programming language

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [March 19, 2020, 4:05pm UTC](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794/3 "2020-03-19T16:05:49Z")

</div>

thanks I’ll take a look.

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [March 19, 2020, 6:01pm UTC](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794/4 "2020-03-19T18:01:14Z")

</div>

Ok so still kind of stuck, I understand that i would use the name of the library I downloaded as a prefix for the conflicting class, however as I only want access to the processing version of the class, I’m not sure how to call it.

Ive tried

```auto
processing.Table
core.Table

```

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [March 19, 2020, 6:09pm UTC](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794/5 "2020-03-19T18:09:15Z")

</div>

Processing’s `class` Table belongs to `package` _processing.data_:  
[Processing.GitHub.io/processing-javadocs/core/processing/data/Table.html](http://Processing.GitHub.io/processing-javadocs/core/processing/data/Table.html)

Therefore its “fully qualified name” is `processing.data.Table`.
