# vtk application deployment

**URL:** https://discourse.vtk.org/t/vtk-application-deployment/1992
**Category:** Support
**Created:** [October 28, 2019, 11:06am UTC](https://discourse.vtk.org/t/vtk-application-deployment/1992 "2019-10-28T11:06:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![naffrancois](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/f08c70/32.png) [@naffrancois](https://discourse.vtk.org/u/naffrancois)
#### Post date: [October 28, 2019, 11:06am UTC](https://discourse.vtk.org/t/vtk-application-deployment/1992/1 "2019-10-28T11:06:39Z")

</div>

Hello,

I successfully wrote a java application with vtk on my development machine. I generated an executable jar file with netbeans which works nicely in different locations of C: drive (with different dll path and vtk.jar classpath). Now I would like to test this jar on a different machine where vtk is not installed. To do this I provide the jar of my application, the vtk.jar file as well as all dll files contained in my vtk installation folder.

On the target machine the application fails to load vtk libraries, even if path is correctly set.

Both machines are under windows 10 64bits with java 1.8. I am really stuck with this problem.

Thank you 🙂

edit: vtk has been built with shared libs on and in release mode

---

<div class="post-metadata">

### Author: ![naffrancois](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/f08c70/32.png) [@naffrancois](https://discourse.vtk.org/u/naffrancois)
#### Post date: [October 28, 2019, 8:40pm UTC](https://discourse.vtk.org/t/vtk-application-deployment/1992/2 "2019-10-28T20:40:12Z")

</div>

Hello,

I think I finally managed to make it work. I guess I had chaos in my environment variables. If this can help others here are the steps I followed:

- cmake vtk in release configuration, shared libs on with vtk\_wrap\_java activated but without vtk\_java\_install
- build vtk with visual studio 2017
- added bin directory of vtk installation folder to path
- java/vtk application using netbeans ide with vtk.jar library =\> directory containing appli.jar + lib subdirectory containing vtk.jar
- added a bin folder subdirectory to the previous folder where I copied all vtk dll
- copying the last folder to another computer without vtk installed worked

---

<div class="post-metadata">

### Author: ![Dave\_DeMarle](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dave_demarle/32/6_2.png) [@Dave\_DeMarle](https://discourse.vtk.org/u/Dave_DeMarle)
#### Post date: [October 30, 2019, 2:14pm UTC](https://discourse.vtk.org/t/vtk-application-deployment/1992/3 "2019-10-30T14:14:04Z")

</div>

Thanks for posting.  
I expect you’ve made the next person down the line’s life a bit easier.
