<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body 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>
</body>
</html>