# Error loading URCap to PolyScope

**URL:** <https://forum.universal-robots.com/t/error-loading-urcap-to-polyscope/5491>\
**Category:** Java\
**Created:** [November 5, 2019, 11:39am UTC](https://forum.universal-robots.com/t/error-loading-urcap-to-polyscope/5491 "2019-11-05T11:39:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon79748982](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@anon79748982](https://forum.universal-robots.com/u/anon79748982)\
**Post date:** [November 5, 2019, 11:39am UTC](https://forum.universal-robots.com/t/error-loading-urcap-to-polyscope/5491/1 "2019-11-05T11:39:13Z")

</div>

Hello,

Im developing a URCap and using an external .jar library (moka7). The project compiles but when I charge it to the PolyScope the URCap shows with a “!” sign and wont work. The .jar is uploaded to the resources file.

 ![Sin%20t%C3%ADtulo4](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/4/4f8c388b54f71a11688ebfc8f78f0ec412fd8963.png)  
Image showing correct compilation

 ![Sin%20t%C3%ADtulo1](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/9/9947e1aab699616682e61740a1fed0e2271e05b2.png)  
Image showing error while running PolyScope simulator

 ![Sin%20t%C3%ADtulo5](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/0/0a7cf779491b3539eeba2e11f25c22b2b7a2e5f1.png)  
Image showing warning on URSim

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![anon69049855](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anon69049855](https://forum.universal-robots.com/u/anon69049855)\
**Post date:** [November 5, 2019, 11:47am UTC](https://forum.universal-robots.com/t/error-loading-urcap-to-polyscope/5491/2 "2019-11-05T11:47:42Z")

</div>

Have you installed your .jar file and add it to the “Embed-Dependency” section? That did the trick in my case.

From the command line:  
mvn install:install-file -Dfile= -DgroupId=“groupId” -DartifactId=“artifactId” -Dversion=“version” -Dpackaging=jar -DgeneratePom=true

Then you should have to add the line:  
“Embed-Dependency"artifact”/Embed-Dependency"  
in the section configuration/instructions

P.D. everything inside quotes is inside \<\>

---

<div class="post-metadata">

**Author:** ![anon79748982](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@anon79748982](https://forum.universal-robots.com/u/anon79748982)\
**Post date:** [November 5, 2019, 1:51pm UTC](https://forum.universal-robots.com/t/error-loading-urcap-to-polyscope/5491/3 "2019-11-05T13:51:05Z")

</div>

Hello grodriguez,

I am not able to find out which are the values for groupId, artifactId or the version of my .jar.  
Maybe it is because it originaly was a project that I got exported as a .jar to work with it as a library.

I sincerely appreciate your help anyway

---

<div class="post-metadata">

**Author:** ![anon69049855](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anon69049855](https://forum.universal-robots.com/u/anon69049855)\
**Post date:** [November 5, 2019, 3:51pm UTC](https://forum.universal-robots.com/t/error-loading-urcap-to-polyscope/5491/4 "2019-11-05T15:51:17Z")

</div>

You can open the .jar like a .zip file and, if it was a maven project, you could extract that information from the pom.xml.

I haven´t tested the case of importing a non maven project. But that seems a general java problem so you could search in sites like StackOverflow for more answers.

---

<div class="post-metadata">

**Author:** ![anon79748982](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@anon79748982](https://forum.universal-robots.com/u/anon79748982)\
**Post date:** [November 6, 2019, 7:22am UTC](https://forum.universal-robots.com/t/error-loading-urcap-to-polyscope/5491/5 "2019-11-06T07:22:39Z")

</div>

Solved! By just re-uploading the .jar file into de resources file did the trick! Thanks for your help grodriguez!
