# VTK 9 and Java- vtk.jar not automatically generated. Also location of wrapper dlls

**URL:** https://discourse.vtk.org/t/vtk-9-and-java-vtk-jar-not-automatically-generated-also-location-of-wrapper-dlls/3354
**Category:** Support
**Created:** [May 20, 2020, 6:37pm UTC](https://discourse.vtk.org/t/vtk-9-and-java-vtk-jar-not-automatically-generated-also-location-of-wrapper-dlls/3354 "2020-05-20T18:37:25Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![eclrgp](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/e/e9a140/32.png) [@eclrgp](https://discourse.vtk.org/u/eclrgp)
#### Post date: [September 19, 2020, 9:26am UTC](https://discourse.vtk.org/t/vtk-9-and-java-vtk-jar-not-automatically-generated-also-location-of-wrapper-dlls/3354/16 "2020-09-19T09:26:15Z")

</div>

As Daniel has said the official advice is to use ninja.

However if you do not want to install an extra piece of software it is very easy to complete the build process for the java wrappers if you use Visual Studio.

I assume you have configured cmake to include the java  
wrappers  
The VS cmake does not know how to build java files so the last  
stage of building vtk.jar file has to be done manually since vtk  
9.0.0  
At a command prompt and assuming the source has been  
unpacked to \vtk-9.0.1

cd \vtk-9.0.1\Wrapping\Java  
dir /s/B \*.java \>javafiles  
javac -d /vtk-9.0.1/java @javafiles  
cd \vtk-9.0.1\java  
jar --create -f …/bin/vtk.jar vtk/.class

The java wrapper dlls are stored separately from the other vtk dlls  
There are in

\VTK-9.0.1\lib\java\vtk-Windows-AMD64\Release  
or  
\VTK-9.0.1\lib\java\vtk-Windows-AMD64\Debug

Both sets of dlls need to be in the path

Ray

Date sent: Wed, 22 Jul 2020 10:59:22 +0000  
Send reply to: VTK [vtk+8b1cafcba92a11d2732025d7b1b9d26d@discourse.vtk.org](mailto:vtk+8b1cafcba92a11d2732025d7b1b9d26d@discourse.vtk.org)  
Also location of wrapper dlls  
Date sent: Fri, 18 Sep 2020 15:12:14 +0000  
Send reply to: VTK [vtk+fea01a644757d8856e7a68dc492597c0@discourse.vtk.org](mailto:vtk+fea01a644757d8856e7a68dc492597c0@discourse.vtk.org)  
location of wrapper dlls

> Bottom line, does an answer exist? If so, could someone be nice enough to take some time to  
> help us? That would be so appreciated and I will nominate you for a Nobel Peace Prize or  
> something. Thanks!
> 
> Visit Topic or reply to this email to respond.  
> To unsubscribe from these emails, click here.

Ray and Pamela Powell  
Phone: 0113 2550286

---

_[View the full topic](https://discourse.vtk.org/t/vtk-9-and-java-vtk-jar-not-automatically-generated-also-location-of-wrapper-dlls/3354)._
