# Does the vtk java version support SMP?

**URL:** https://discourse.vtk.org/t/does-the-vtk-java-version-support-smp/13404
**Category:** Support
**Created:** [February 28, 2024, 3:18am UTC](https://discourse.vtk.org/t/does-the-vtk-java-version-support-smp/13404 "2024-02-28T03:18:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![x\_iunknown](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/x/5fc32e/32.png) [@x\_iunknown](https://discourse.vtk.org/u/x_iunknown)
#### Post date: [February 28, 2024, 3:18am UTC](https://discourse.vtk.org/t/does-the-vtk-java-version-support-smp/13404/1 "2024-02-28T03:18:32Z")

</div>

Does the vtk java version support SMP?  
I compiled vtk9.3 under windows, JDK1.8, set the parameters and turned on  
VTK\_WRAP\_JAVA  
VTK\_SMP\_ENABLE\_OPENMP  
VTK\_SMP\_ENABLE\_SEQUENTIAL  
VTK\_SMP\_ENABLE\_STDTHREAD  
VTK\_SMP\_IMPLEMENTATION\_TYPE STDThread  
VTK\_MODULE\_ENABLE\_VTK\_FiltersMP YES

in test code  
public SimpleVTK() {  
super(new BorderLayout());

```
 // compile error
 vtkSMPTools smpTools = new vtkSMPTools();
 smpTools.SetBackend("STDThread");

 //.......

```

}

The IDE error message: ‘vtk.vtkSMPTools’ is not public in ‘vtk’. Cannot be accessed from outside package.  
It seems vtkSMPTools can not be used in vtk java.  
Do I missed something or just SMP not supported in vtk java?

Notice:  
I have run vtk java program normally without using vtkSMPTools.

```
Thanks!

```

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [February 28, 2024, 6:07pm UTC](https://discourse.vtk.org/t/does-the-vtk-java-version-support-smp/13404/2 "2024-02-28T18:07:42Z")

</div>

I suspect that VTK’s Java wrapper generators can’t wrap these classes effectively. @dgobbi?
