<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; "><div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">I recently pulled down VTK 6.0.0 and installed it. &nbsp;Getting it running provided to be a little more fun than I anticipated but I got there (http://blogs.geofx.com/).</div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">However, part of my confusion arose from what I believe is out of date tutorials. &nbsp;In the first Java tutorial, the first part pf the example has a &nbsp;"load library" method:</div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><blockquote style="color: rgb(0, 0, 0); margin: 0px 0px 0px 40px; border: none; padding: 0px; "><div><font face="Consolas">// In the static contructor we load in the native code.</font></div><div><font face="Consolas">// The libraries must be in your path to work.</font></div><div><font face="Consolas">static {</font></div><div><font face="Consolas">&nbsp; &nbsp;System.loadLibrary("vtkCommonJava");</font></div><div><font face="Consolas">&nbsp; &nbsp;System.loadLibrary("vtkFilteringJava");</font></div><div><font face="Consolas">&nbsp; &nbsp;System.loadLibrary("vtkIOJava");</font></div><div><font face="Consolas">&nbsp; &nbsp;System.loadLibrary("vtkImagingJava");</font></div><div><font face="Consolas">&nbsp; &nbsp;System.loadLibrary("vtkGraphicsJava");</font></div><div><font face="Consolas">&nbsp; &nbsp;System.loadLibrary("vtkRenderingJava");</font></div><div><font face="Consolas">}</font></div></blockquote><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">&nbsp; This doesn't work with VTK 6.0.0. &nbsp;Instead, one gets an exception</div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><div><span style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">&nbsp; </span><font face="Consolas" color="#ff0000">java.lang.UnsatisfiedLinkError: no vtkCommonJava in java.library.path</font></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">&nbsp; This turns out to be reasonable as there is no vtkCommonJava library in the lib folder.</div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">&nbsp; In the example Cone2.java, the loading of libraries is significantly different:</div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><div style="color: rgb(0, 0, 0); "><font face="Consolas">&nbsp; &nbsp; &nbsp; &nbsp;// Load VTK library and print which library was not properly loaded</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas">&nbsp; &nbsp; &nbsp; &nbsp;static</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas">&nbsp; &nbsp; &nbsp; &nbsp;{</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">        </span>if (!vtkNativeLibrary.LoadAllNativeLibraries())</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                </span>{</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                        </span>for (vtkNativeLibrary lib : vtkNativeLibrary.values())</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                        </span>{</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                                </span>if (!lib.IsLoaded())</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                                </span>{</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                                        </span>System.out.println(lib.GetLibraryName() + " not loaded");</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                                </span>}</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                        </span>}</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                </span>}</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space:pre">                </span>vtkNativeLibrary.DisableOutputWindow(null);</font></div><div style="color: rgb(0, 0, 0); "><font face="Consolas"><span class="Apple-tab-span" style="white-space: pre; ">        </span>}</font></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">This works fine. &nbsp;As it turns out, only the example Cone2.java uses the "correct" method for loading the libraries. &nbsp;Am I correct in assuming that Cone 1 and Cone3-5 are simply out-of-date with respect to VTK 6.0.0? &nbsp;Or am I missing something?</div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">I also note that only the simple "Sample" folder with its Cone examples even has Java implementations. &nbsp;I guess I am on my own to convert the examples to Java myself (which is fine, that will be a good learning exercise) or will that be a Quixotic effort on my part, tilting at an incomplete Java windmill?</div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">TIA,</div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; ">Ric</div></div><div style="color: rgb(0, 0, 0); font-family: Verdana, sans-serif; "><br></div></body></html>