[vtkusers] VTK 4.0, java, patented, Matlab
Satrajit S Ghosh
satra at bu.edu
Wed Feb 27 16:56:03 EST 2002
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
More information about the vtkusers
mailing list