<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2712.300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Where can I find a compete set of instructions for
making VTK work with Java and Python on a Windows machine? I have
installed the vtkcore, vtkjava and vtkpython binaries, but have not gotten
anything to work yet. I can't find any documentation about what paths to
change, what libraries to link, etc except for tidbits of information I have
found in the mailing list.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regarding Java:</FONT></DIV>
<DIV><FONT face=Arial size=2>I have set my classpath to include vtk.jar, and I
loaded all the libraries I can think of in a static constructor. However,
when I create a vtkRenederWindow, I get the VTKInit unsatisfied link
error. Here is my code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>import vtk.*;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>public class test<BR>{<BR> static
{<BR>
System.loadLibrary("vtkCommonJava");<BR>
System.loadLibrary("vtkFilteringJava");<BR>
System.loadLibrary("vtkIOJava");<BR>
System.loadLibrary("vtkImagingJava");<BR>
System.loadLibrary("vtkGraphicsJava");<BR> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> public static void main( String[] args
)<BR> {<BR> vtkRenderWindow renwin = new
vtkRenderWindow();<BR> renwin.Render();<BR>
}<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and here is the error:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Exception in thread "main"
java.lang.UnsatisfiedLinkError:
VTKInit<BR> at
vtk.vtkRenderWindow.VTKInit(Native
Method)<BR> at
vtk.vtkObject.<init>(vtkObject.java:97)<BR>
at
vtk.vtkWindow.<init>(vtkWindow.java:146)<BR>
at
vtk.vtkRenderWindow.<init>(vtkRenderWindow.java:350)<BR>
at test.main(test.java:18)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regarding Python:</FONT></DIV>
<DIV><FONT face=Arial size=2>I went in the registry and set my PythonPath to
include both VTK\Wrapping\Python and VTK\bin. However, neither one of
these work as I still cannot import a single module/library in Python. I
have seen all kinds of things about copying your .dll's to multiple locations,
renaming vtkpython.py to __init__.py, etc. Is there anything that will
actually work?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2> Josh</FONT></DIV></BODY></HTML>