# Building vtk 9.4.0 on windows Java

**URL:** https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936
**Category:** Support
**Created:** [November 30, 2024, 8:55am UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936 "2024-11-30T08:55:41Z")
**Posts on this page:** 20
**Page:** 4

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [December 17, 2024, 2:18pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/61 "2024-12-17T14:18:09Z")

</div>

Hello,

Loading libstdc++ from `/lib/x86_64-linux-gnu` is unusual. I’d expect it to be loaded from `/usr/local/lib64`. Maybe there’s something amiss in your `LD_LIBRARY_PATH`.

More details here: [c++ - "`GLIBCXX\_3.4.32' not found" error at runtime. GCC 13.2.0 - Stack Overflow](https://stackoverflow.com/questions/76974555/glibcxx-3-4-32-not-found-error-at-runtime-gcc-13-2-0)

best,

PC

---

<div class="post-metadata">

### Author: ![vbolea](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vbolea/32/4060_2.png) [@vbolea](https://discourse.vtk.org/u/vbolea)
#### Post date: [December 17, 2024, 7:44pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/62 "2024-12-17T19:44:17Z")

</div>

We do build the VTK maven package with a very recent GLIBCXX which is undesirable, the reason for this is that we used our current CI image (based on fedora 39). In future iterations we will move to an older/more stable distro that ships an older glibc. Probably RHEL8 (Alma).

If you are using a distro with an older glibc, I recommend a tool such as a distrobox

Vicente

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [December 28, 2024, 9:26am UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/63 "2024-12-28T09:26:44Z")

</div>

Good morning all. Merry Xmas and a happy 2025 to you all. Thanks for the Java build solution for 9.4.0.

While waiting for 9.4.1 release, I went back to my last clean 9._._ build, ie 9.3.1. The build was clean but when I tried to run it, it fails on load as in the attached log.  
(error: The specified procedure could not be found)

(vtk931test.txt)

I have tried several tricks including checking the missing base entries in Cmake, to no avail. Example as in attachment

(cmakeConfigEntries.png)

It seems these dll’s are not built. There may well be no instruction to build them else an error would show:

vtkRenderingLICOpenGL2Java.dll  
vtkRenderingCellGridJava.dll  
vtkIOCellGridJava.dll  
vtkIOCONVERGECFDJava.dll  
vtkFiltersGeometryPreviewJava.dll  
vtkFiltersCellGridJava.dll  
vtkRenderingUIJava.dll

I suspect 9.4.1 will still harbour this error.  
What am I doing wrong? Please help. Thanks

ngwarai

> **(attachments)**
>
> ![cmake config entries.PNG](https://discourse.vtk.org/uploads/default/original/2X/5/578b19e494b54ea0995c72fa790de68fbfe92e95.png)  
> [vtk931test.txt](https://discourse.vtk.org/uploads/short-url/mKDRwxCatj2dBRjT93iXEHM28DL.txt) (5.61 KB)

---

<div class="post-metadata">

### Author: ![vbolea](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vbolea/32/4060_2.png) [@vbolea](https://discourse.vtk.org/u/vbolea)
#### Post date: [December 29, 2024, 2:12am UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/64 "2024-12-29T02:12:16Z")

</div>

There have been some changes in the maven package generation code since vtk 9.4.0. I recommend you to try the current tip of the release branch of VTK. Note that we have not yet done an official maven release of any vtk 9.4 due to existing issues in some platforms that we are working on correcting.

Vicente

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [December 29, 2024, 4:25am UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/65 "2024-12-29T04:25:03Z")

</div>

Good morning Vicente and thanks for the early response. I am afraid I do need some hand-holding here. How do I get to try the “current tip of the release branch of VTK”.

If you don’t mid giving me a guide, I will dive in head first and give it a bash. Thanks very much in advance.

ngwarai

---

<div class="post-metadata">

### Author: ![vbolea](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vbolea/32/4060_2.png) [@vbolea](https://discourse.vtk.org/u/vbolea)
#### Post date: [December 29, 2024, 11:57pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/66 "2024-12-29T23:57:29Z")

</div>

What I refer to with the tip of the release branch is the last (most recent) commit of the git release branch in the VTK source code repository. You can find the VTK source at [https://gitlab.kitware.com/vtk/vtk](https://gitlab.kitware.com/vtk/vtk)

Let me know if you need further guidance.

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [December 30, 2024, 4:51am UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/67 "2024-12-30T04:51:52Z")

</div>

Thanks Vicente. I got the source. I will build it and report back. Thanks again.

ngwarai

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [December 30, 2024, 1:49pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/68 "2024-12-30T13:49:20Z")

</div>

Good afternoon Vicente, the vtkMaster makes a clean build on VS2022 for Java 8. Thanks to David and the team.

(log attached - vtkMaster build log\_Java\_8.txt)

I am now setting up to run it and check for those missing dll’s from vtk\_9.3.1 (last clean build). I will report back soon. Thanks very much.

ngwarai

> **(attachments)**
>
> [vtkMaster build log\_Java\_8.txt](https://discourse.vtk.org/uploads/short-url/ldeqek38Z9h85sTPm6GaWUi2KIk.txt) (1.29 MB)

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [December 30, 2024, 2:19pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/69 "2024-12-30T14:19:57Z")

</div>

Good afternoon again Vicente. I ran into an unexpected problem. The Wrapping Java would not clean compile. I have attached the error message obtained.

java compile error.txt

It may possible to manually work around this and I will try. Thanks

ngwarai

> **(attachments)**
>
> [java compile error.txt](https://discourse.vtk.org/uploads/short-url/uGrDpjAhOmJaaSgimlX8Snf64FI.txt) (816 Bytes)

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [December 30, 2024, 2:39pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/70 "2024-12-30T14:39:45Z")

</div>

Hi Ngwarai, the following error is about “vtkFastLabeledDataMapper” which is a class from the “master” branch of VTK. Perhaps you accidentally downloaded the “master” branch instead of the “release” branch for VTK 9.4.1?

```auto
error: GetInput() in vtkFastLabeledDataMapper cannot override GetInput() in vtkPolyDataMapper
  public vtkDataSet GetInput()
                    ^
  return type vtkDataSet is not compatible with vtkPolyData

```

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [December 30, 2024, 2:53pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/71 "2024-12-30T14:53:34Z")

</div>

Thanks David and good afternoon. I’m glad it is a known problem. I will look for the ‘release’ version and have another bash. Thanks again.

ngwarai

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [December 30, 2024, 7:22pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/72 "2024-12-30T19:22:02Z")

</div>

Thanks David, the build down to the java jar is clean as in vtk9.3.1. However the latter failed at load due to missing dll’s which may never have been built. I will try 9.4.1 hoping to pass this hurdle. Will report in the morning tomorrow. Thanks very much.

ngwarai

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [December 31, 2024, 8:38am UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/73 "2024-12-31T08:38:48Z")

</div>

Good morning David. I see 9.4.1 is officially out. I did get the release version and it built clean. When I tried to run it, there was a load failure due to missing DLL’s. **However when I checked, these DLLS’s are actually there on the system**. Thus there must be something missing on my system, perhaps a DLL.  
I need to find out what it is. I will report back. Thanks very much. I have attached the failure log

> **(attachments)**
>
> [vtk941 load failure log java8.txt](https://discourse.vtk.org/uploads/short-url/4J2DBYyysACLOALFsiGKu3md4di.txt) (11.6 KB)

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [January 1, 2025, 8:06am UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/74 "2025-01-01T08:06:13Z")

</div>

Good morning David. The build remains clean on the 9.4.1 official release. However, I’m pretty much stuck on the “api-ms-win-\*.dll” load-failure. I have tried to rebuild with

“CMAKE\_WINDOWS\_EXPORT\_ALL\_SYMBOLS:”

Problem remains. I have no clue what is missing from my system. Will continue to fight on. Thanks

ngwarai

---

<div class="post-metadata">

### Author: ![dgobbi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dgobbi/32/18_2.png) [@dgobbi](https://discourse.vtk.org/u/dgobbi)
#### Post date: [January 1, 2025, 2:30pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/75 "2025-01-01T14:30:40Z")

</div>

Hi Ngwarai, I’ve never seen that error. Please verify that you have a recent “Microsoft Visual C++ Redistributable” package installed on your computer (see “Settings/Apps” image below). In fact, there are usually two (one for x86, and one for x64).

 ![settings](https://discourse.vtk.org/uploads/default/original/2X/d/d8c38c464c6078857ee465b22d3d40caca11bb61.png)

The installers are included with Visual Studio 2022, in the following directory:

 ![redist](https://discourse.vtk.org/uploads/default/original/2X/a/a81d3f099a8d5bf2441556bc3a1bf39c973cc125.png)

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [January 1, 2025, 4:29pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/76 "2025-01-01T16:29:53Z")

</div>

Good afternoon David and thanks for the response. Yes, those two install packages are there but I have specifically never install-run them. Let me do the install and build the system from start, I will report back tomorrow. Thanks very much for the lead. I had no clue about these and was looking in the wrong direction.

ngwarai

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [January 2, 2025, 5:35pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/77 "2025-01-02T17:35:16Z")

</div>

Good evening David and thanks for the lead. I installed the two packages and built afresh. However the problem persisted. I am rebuilding again with new cmake parameter settings for the standard windows runtime as in attached.

I will report tomorrow. Thanks  
ngwarai

> **(attachments)**
>
> ![cmake config.PNG](https://discourse.vtk.org/uploads/default/original/2X/4/4710d623bc93cb12c0be4aae0c2a5dcdab8f8dfb.png)

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [January 3, 2025, 10:47am UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/78 "2025-01-03T10:47:42Z")

</div>

Good afternoon. The new build did not work either. Will now try earlier versions of VS. Thanks

ngwarai

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [January 5, 2025, 5:22pm UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/79 "2025-01-05T17:22:57Z")

</div>

Good evening David. I have thrown in the towel on 9.4.1 Java. I have tried every suggestion without any luck. **But there could be someone out there running 9.4.1 on java who might give clues as to the source of my error.**

Thanks.  
ngwarai

---

<div class="post-metadata">

### Author: ![Ngwarai](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/n/9f8e36/32.png) [@Ngwarai](https://discourse.vtk.org/u/Ngwarai)
#### Post date: [January 12, 2025, 10:17am UTC](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936/80 "2025-01-12T10:17:38Z")

</div>

Good morning David. Ever since vtk\_9.4.1 was released, I have been building the **RELEASE** version with vs 2022. The build was clean but java would not load, never mind run. The loading error suggested missing DLL’s of which I downloaded many in trial and error. Nothing worked and I almost gave up.

I have just built the **DEBUG** version of it and it **LOADS & RUNS**! There is obviously something in DEBUG that is missing from RELEASE. No idea what it is but I shall look for it while happily running my new vtk\_9.4.1 on Java 8.  
Thanks to the team for all the help.

ngwarai

[Previous page](https://discourse.vtk.org/t/building-vtk-9-4-0-on-windows-java/14936.md?page=3)
