# UnsatisfiedLinkError in commandline not in eclipse

**URL:** https://discourse.vtk.org/t/unsatisfiedlinkerror-in-commandline-not-in-eclipse/4555
**Category:** Support
**Created:** [November 3, 2020, 12:26pm UTC](https://discourse.vtk.org/t/unsatisfiedlinkerror-in-commandline-not-in-eclipse/4555 "2020-11-03T12:26:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Daniel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@Daniel](https://discourse.vtk.org/u/Daniel)
#### Post date: [November 3, 2020, 12:26pm UTC](https://discourse.vtk.org/t/unsatisfiedlinkerror-in-commandline-not-in-eclipse/4555/1 "2020-11-03T12:26:24Z")

</div>

Hi there,  
I am testing the example “ReleaseVtkPanel.java” by Sebastien Jourdain. It works as desired under eclipse and also as an exported jar-file, if you start it with a double click.  
But if I **start the jar from the command line** I get an **UnsatisfiedLinkError**. The vtk elements are apparently not recognized.

 ![grafik](https://discourse.vtk.org/uploads/default/original/2X/0/05c4763b0c5876f215f4b120ec90edb67d9f1a76.png)

Any ideas?

java-file:  
[ReleaseVtkPanel.java](https://discourse.vtk.org/uploads/short-url/x2v66NjrkNzXFkawv6BO3Q82AeF.java) (3.7 KB)  
jar-file:  
[vtk-test.jar](https://discourse.vtk.org/uploads/short-url/vjOwcsiAhMH37pEDRiP9sALjxB5.jar) (2.7 MB)

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [November 3, 2020, 3:24pm UTC](https://discourse.vtk.org/t/unsatisfiedlinkerror-in-commandline-not-in-eclipse/4555/2 "2020-11-03T15:24:50Z")

</div>

You need to set your %PATH% to add the directory that contains the VTK .dll files or provide that information to java via the java.library.path property.

---

<div class="post-metadata">

### Author: ![Daniel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@Daniel](https://discourse.vtk.org/u/Daniel)
#### Post date: [November 4, 2020, 8:57am UTC](https://discourse.vtk.org/t/unsatisfiedlinkerror-in-commandline-not-in-eclipse/4555/3 "2020-11-04T08:57:25Z")

</div>

My PATH variable is set, but the mentioned error only occurs when using the command line.  
By double clicking on the exported JAR the application works as desired.

Why are the corresponding dll’s not found when using the command line?

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [November 4, 2020, 8:52pm UTC](https://discourse.vtk.org/t/unsatisfiedlinkerror-in-commandline-not-in-eclipse/4555/4 "2020-11-04T20:52:52Z")

</div>

Is the manifest providing that information when running from the jar?  
Is the path different in one use case vs the other?

I’m not sure how thing get populated (manifest or else), but this is a requirement.
