[vtkusers] VTK newbie's question

Antoine Boivin a.boivin at m2m-ndt.com
Tue Jun 14 07:56:26 EDT 2005


It's possible you haven't load the dependents dll
In my program, I load all the dll of vtk like this :

 public static void loadDll() throws UnsatisfiedLinkError {
  System.loadLibrary("vtkzlib");
  System.loadLibrary("vtkjpeg");
  System.loadLibrary("vtktiff");
  System.loadLibrary("vtkpng");
  System.loadLibrary("vtkexpat");
  System.loadLibrary("vtkfreetype");
  System.loadLibrary("vtkftgl");

  System.loadLibrary("vtkCommon");
  System.loadLibrary("vtkCommonJava");
  System.loadLibrary("vtkFiltering");
  System.loadLibrary("vtkFilteringJava");
  System.loadLibrary("vtkIO");
  System.loadLibrary("vtkIOJava");
  System.loadLibrary("vtkImaging");
  System.loadLibrary("vtkImagingJava");
  System.loadLibrary("vtkGraphics");
  System.loadLibrary("vtkGraphicsJava");
  System.loadLibrary("vtkRendering");
  System.loadLibrary("vtkRenderingJava");
  System.loadLibrary("vtkHybrid");
  System.loadLibrary("vtkHybridJava");
  System.loadLibrary("vtkParallel");
  System.loadLibrary("vtkParallelJava");
 }

----- Original Message ----- 
From: "Pak Hong" <hata_ph at yahoo.com>
To: "Antoine Boivin" <a.boivin at m2m-ndt.com>
Sent: Tuesday, June 14, 2005 11:43 AM
Subject: Re: [vtkusers] VTK newbie's question


> Hi Antonie,
>
> Thanks for helping me.
> I already copy the dll file to the jdk\jre\bin folder
> but still showing the same error message.
>
> init:
> deps-jar:
> compile:
> run:
> java.lang.UnsatisfiedLinkError:
> C:\Sun\AppServer\jdk\jre\bin\vtkCommonJava.dll: The
> specified procedure could not be found
>    at java.lang.ClassLoader$NativeLibrary.load(Native
> Method)
>    at
> java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
>    at
> java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
>    at
> java.lang.Runtime.loadLibrary0(Runtime.java:788)
>    at java.lang.System.loadLibrary(System.java:834)
>    at Cone.<clinit>(Cone.java:17)
> Exception in thread "main"
> Java Result: 1
> BUILD SUCCESSFUL (total time: 3 seconds)
>
> --- Antoine Boivin <a.boivin at m2m-ndt.com> wrote:
>
>>
>> copy the dll in the "bin" directories of your jre
>> like
>> C:\j2sdk1.4.2_08\jre\bin
>>
>> Next load the dll  with
>>
>> System.loadLibrary("vtkCommonJava");
>> ...
>>
>> Good luck!
>> Antoine
>>
>>
>> ----- Original Message ----- 
>> From: "Pak Hong" <hata_ph at yahoo.com>
>> To: <vtkusers at vtk.org>
>> Sent: Tuesday, June 14, 2005 4:39 AM
>> Subject: [vtkusers] VTK newbie's question
>>
>>
>> > Hi all,
>> >
>> > I am just starting to learn VTK and already had
>> > installed the VTK42 windows version. But when I
>> run
>> > the vtk cone example prompt out error showing
>> cannot
>> > load the dll file. Base on the instruction given
>> after
>> > I install the vtk I need to copy some *java.dll
>> file
>> > to my system folder but I try already still
>> showing
>> > the message. May I know where is the correct
>> location
>> > to copy the dll to?
>> >
>> > I am using NetBean 4.0 to write my program.
>> > wins XP
>> >
>> > init:
>> > deps-jar:
>> > compile:
>> > run:
>> > java.lang.UnsatisfiedLinkError: C:\Program
>> > Files\vtk42\bin\vtkCommonJava.dll: The specified
>> > procedure could not be found
>> >    at
>> java.lang.ClassLoader$NativeLibrary.load(Native
>> > Method)
>> >    at
>> >
>>
> java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
>> >    at
>> >
>>
> java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
>> >    at
>> > java.lang.Runtime.loadLibrary0(Runtime.java:788)
>> >    at
>> java.lang.System.loadLibrary(System.java:834)
>> >    at Cone.<clinit>(Cone.java:17)
>> > Exception in thread "main"
>> > Java Result: 1
>> > BUILD SUCCESSFUL (total time: 7 seconds)
>> >
>> > Have a nice day. Bang.....bang!!!
>> >
>> >
>> >
>> > Send instant messages to your online friends
>> http://uk.messenger.yahoo.com
>> > _______________________________________________
>> > This is the private VTK discussion list.
>> > Please keep messages on-topic. Check the FAQ at:
>> > http://www.vtk.org/Wiki/VTK_FAQ
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtkusers
>> >
>>
> ---------------------------------------------------------------------------------------
>> > Wanadoo vous informe que cet  e-mail a ete
>> controle par l'anti-virus mail.
>> > Aucun virus connu a ce jour par nos services n'a
>> ete detecte.
>> >
>> >
>> >
>>
>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
> Have a nice day. Bang.....bang!!!
>
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
> ---------------------------------------------------------------------------------------
> Wanadoo vous informe que cet  e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
> 





More information about the vtkusers mailing list