[vtkusers] VTK 4.0, java, patented, Matlab

Jeff Lee jeff at cdnorthamerica.com
Thu Feb 28 07:10:31 EST 2002


At some point in your java code, you have a static block which loads the 
vtk native libraries( like in vtkPanel.java).  Add vtkPatented to the list.
-Jeff

Satrajit S Ghosh wrote:

>Hi,
>
>I compiled the latest nightly release using MSVC 6, using the latest CMake
>setup program and switched the PATENTED flag on and java wrapper on.
>
>Everything compiled fine and I created the jar file after compiling the java
>classes. The patented dlls exist (both regular and JAVA).
>
>I am accessing VTK from within Matlab using JRE 1.3.1_02. I wrote a script
>to test instantiation of every object, such as:
>
>import vtk.*;
>
>var1 = javaObject('vtk.vtkAbstractMapper');
>var2 = javaObject('vtk.vtkAbstractMapper3D');
>var3 = javaObject('vtk.vtkAbstractPicker');
>var4 = javaObject('vtk.vtkAbstractPropPicker');
>...
>
>I can instantiate everything but the Patented classes.
>
>var99 = javaObject('vtk.vtkDecimate');
>var107 = javaObject('vtk.vtkDividingCubes');
>var152 = javaObject('vtk.vtkGridSynchronizedTemplates3D');
>var229 = javaObject('vtk.vtkImageMarchingCubes');
>var311 = javaObject('vtk.vtkKitwareContourFilter');
>...
>
>I get an error for all of them similar to:
>Java exception occurred:
>java.lang.UnsatisfiedLinkError: VTKInit
>	at vtk.vtkDecimate.VTKInit(Native Method)
>	at vtk.vtkObject.<init>(vtkObject.java:97)
>	at vtk.vtkProcessObject.<init>(vtkProcessObject.java:86)
>	at vtk.vtkSource.<init>(vtkSource.java:90)
>	at vtk.vtkPolyDataSource.<init>(vtkPolyDataSource.java:30)
>	at
>vtk.vtkPolyDataToPolyDataFilter.<init>(vtkPolyDataToPolyDataFilter.java:26)
>	at vtk.vtkDecimate.<init>(vtkDecimate.java:274)
>
>I can run the Cone tutorials from within Matlab, so I know the interface is
>working.
>Did I leave out something while compiling? Is there a java program to test
>any of the patented algos independent of Matlab?
>
>Thanks,
>
>Satra
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
>





More information about the vtkusers mailing list