# Find resources after .jar deploy

**URL:** <https://forum.universal-robots.com/t/find-resources-after-jar-deploy/863>\
**Category:** Java\
**Created:** [June 8, 2017, 11:19am UTC](https://forum.universal-robots.com/t/find-resources-after-jar-deploy/863 "2017-06-08T11:19:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon46802796](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@anon46802796](https://forum.universal-robots.com/u/anon46802796)\
**Post date:** [June 8, 2017, 11:19am UTC](https://forum.universal-robots.com/t/find-resources-after-jar-deploy/863/1 "2017-06-08T11:19:12Z")

</div>

I’m trying to get a custom resource I placed on my deamon example. I’m following the UR example where:

1. I copy my desired resource in the same way the deamon executable is copied in the pom:

2. Then i call:

So, inside the final `.jar` is present `myres` file as the `HelloWorld` provided in the example. But after several attempts and tests i cannot acquire my resource inside `InstallationNodeContribution` class. I also tried putting the abs path (src/main/…), the GUI folder path and others. I’m missing some step? Where the `.jar` is unpacked when the URSim or the real Controller run?

---

<div class="post-metadata">

**Author:** ![anon58863070](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@anon58863070](https://forum.universal-robots.com/u/anon58863070)\
**Post date:** [June 9, 2017, 8:41am UTC](https://forum.universal-robots.com/t/find-resources-after-jar-deploy/863/2 "2017-06-09T08:41:32Z")

</div>

Easiest way to check where your file your file is located inside the jar is lanching the command “jar -tf target/(urcapName).jar” -\> the .jar is the same as the .urcap just the extension change.  
(If the file is not anywhere, you should try to add a `<include>` in your pom.xml or assembly.xml the correct way)

Hope this help.

---

<div class="post-metadata">

**Author:** ![anon58863070](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@anon58863070](https://forum.universal-robots.com/u/anon58863070)\
**Post date:** [June 9, 2017, 12:00pm UTC](https://forum.universal-robots.com/t/find-resources-after-jar-deploy/863/3 "2017-06-09T12:00:28Z")

</div>

Or, set the \< userDefaultExclude \> to false in assembly.xml, and let your daemon in your resources:

```
    <fileSet>
        <directory>src</directory>
        <useDefaultExcludes>false</useDefaultExcludes>
    </fileSet>

```

![](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/367bde8be930ddde6fd8aa7adc6b62acabbd1337.png)

Then after a `mvn install`:  
 ![](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/1X/8659520fbb4261e94525803c5216abd6eb993caa.png)

---

<div class="post-metadata">

**Author:** ![anon46802796](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@anon46802796](https://forum.universal-robots.com/u/anon46802796)\
**Post date:** [June 13, 2017, 2:56pm UTC](https://forum.universal-robots.com/t/find-resources-after-jar-deploy/863/4 "2017-06-13T14:56:53Z")

</div>

Thank you for all the advice @anon58863070. I’m working on it.

Regards.  
Matteo Timossi @anon46802796
