[vtkusers] Java & VTK

Bob Palank srfpala at earthlink.com
Wed May 29 11:52:30 EDT 2002


Running vtk40 on XP from within Borland's JB6.
With the two imports active in my code and all other vtk related statements
commented out, I get a clean compile, build and execution which shows the
panel with the exit button - which works as expected.
If I uncomment vtkPanel renWin = new vtkPanel();
I get a clean compile build and the following errors on an attempted
execution.


-------------------------------------------------------
java.lang.UnsatisfiedLinkError: no vtkCommonJava in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
        at java.lang.Runtime.loadLibrary0(Runtime.java:749)
        at java.lang.System.loadLibrary(System.java:820)
        at vtkPanel.<clinit>(vtkPanel.java:22)
        at test000.test000.<init>(test000.java:22)
        at test000.test000.main(test000.java:56)
Exception in thread "main"
-----------------------------------------------------
vtk.jar and vtkPanel.jar both live in vtk40\bin
Within JB6 one Path statement points to the bin directory.
The second path entry points to vtk40\lib\vtk which hold the libraries
loaded in vtkPanel.
I've got no clue as to where to go from here?
BTW, using vtkPanel.java, I created the vtkPanel.class and placed it in
vtkPanel.jar (using jar ;-))
which may have been an erroneous move.
Hopefully when I finally get this working, I hope to write up a clear and
concise procedure so that others can benefit.
TIA for any help.
Bob Palank



More information about the vtkusers mailing list