# Where is the top of the class path?

**URL:** <https://forum.inductiveautomation.com/t/where-is-the-top-of-the-class-path/92997>\
**Category:** Ignition\
**Created:** [July 10, 2024, 9:06am UTC](https://forum.inductiveautomation.com/t/where-is-the-top-of-the-class-path/92997 "2024-07-10T09:06:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [July 10, 2024, 9:06am UTC](https://forum.inductiveautomation.com/t/where-is-the-top-of-the-class-path/92997/1 "2024-07-10T09:06:03Z")

</div>

Hi!

Inside Ignition **jsonschema** library there is this code:

```python
1 try {
2 URL url = new URL(schemaUrl);
3 parentSchema = factory.getSchema(url);
4 } catch (MalformedURLException var10) {
5 InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(schemaUrl);
6 parentSchema = factory.getSchema(is);
7 }

```

Where _schemaurl_ is the path to the file.

However, the line 5 always return nulls. I have been searching and found [this](https://stackoverflow.com/questions/12645298/understanding-thread-currentthread-getcontextclassloader-getresourceasstream).

As you may see, that line executes from the top of the class path, and if I put a wrong path it doesn't get the file.

My question is:

Where is the top of the class path? It is dependent or I'm doing something wrong?

This function is inside a library that is called from a python file whose function is called using a button.
