<div dir="ltr">Did you set the environment variable PATH or LD_LIBRARY_PATH or DYLD_LIBRARY_PATH to point to the directory with all the native libraries ?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 28, 2013 at 11:22 PM, <a href="mailto:kingvsk@aol.com">kingvsk@aol.com</a> <span dir="ltr"><<a href="mailto:kingvsk@aol.com" target="_blank">kingvsk@aol.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
Please check the following code. If the class extends jcomponent ,
jbutton, jframe or any gui component then it works fine otherwise,
it leads to unsatisfiedlinkerror. <br>
<br>
Any Idea on this...<br>
<br>
import javax.swing.JComponent;<br>
import vtk.vtkNativeLibrary;<br>
<br>
/**<br>
*<br>
* @author sathish<br>
*/<br>
@SuppressWarnings("serial")<br>
public class Testing <font color="#cc0000">extends JComponent</font>
{<br>
// Load All VTK libraries...<br>
<br>
static {<br>
if (!vtkNativeLibrary.LoadAllNativeLibraries()) {<br>
for (vtkNativeLibrary lib : vtkNativeLibrary.values()) {<br>
if (!lib.IsLoaded()) {<br>
System.out.println(lib.GetLibraryName() + " not
loaded");<br>
} else {<br>
System.out.println(lib.GetLibraryName() + "
loaded");<br>
}<br>
}<br>
} else {<br>
System.out.println("All Libraries are loaded");<br>
}<br>
vtkNativeLibrary.DisableOutputWindow(null);<br>
}<br>
<br>
// Main method...<br>
public static void main(String[] args) {<br>
// Core Stuff goes here...<br>
System.out.println("VTK Stuff");<br>
}<br>
}<br>
<br>
--<br>
Sathish<br>
<br>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>