[vtkusers] Strange behavior while loading VTK libraries from Java
Sebastien Jourdain
sebastien.jourdain at kitware.com
Sat Jun 1 11:50:56 EDT 2013
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 ?
On Tue, May 28, 2013 at 11:22 PM, kingvsk at aol.com <kingvsk at aol.com> wrote:
> Hi all,
>
> 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.
>
> Any Idea on this...
>
> import javax.swing.JComponent;
> import vtk.vtkNativeLibrary;
>
> /**
> *
> * @author sathish
> */
> @SuppressWarnings("serial")
> public class Testing extends JComponent {
> // Load All VTK libraries...
>
> static {
> if (!vtkNativeLibrary.LoadAllNativeLibraries()) {
> for (vtkNativeLibrary lib : vtkNativeLibrary.values()) {
> if (!lib.IsLoaded()) {
> System.out.println(lib.GetLibraryName() + " not
> loaded");
> } else {
> System.out.println(lib.GetLibraryName() + " loaded");
> }
> }
> } else {
> System.out.println("All Libraries are loaded");
> }
> vtkNativeLibrary.DisableOutputWindow(null);
> }
>
> // Main method...
> public static void main(String[] args) {
> // Core Stuff goes here...
> System.out.println("VTK Stuff");
> }
> }
>
> --
> Sathish
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130601/0298ab9b/attachment.htm>
More information about the vtkusers
mailing list