[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit again and again

R K Shyam Prakash ramakrishna.prakash at quest-global.com
Mon May 10 08:43:19 EDT 2004


Chris,
	You can go to kitware's FTP site and download the older versions
of vtk binaries or you can build you own VTK binaries. But I am almost
sure that it is not the problem with the binaries. Can you send me a
sample program which crashes in your machine.

--Shyam

> -----Original Message-----
> From: Christian [mailto:schnabilo.chris at gmx.de] 
> Sent: Monday, May 10, 2004 5:51 PM
> To: 'R K Shyam Prakash'; vtkusers at vtk.org
> Subject: AW: [vtkusers] java.lang.UnsatisfiedLinkError: 
> VTKInit again and again
> 
> 
> Dear Shyam,
> 
> i followed your proposal, but it does not work either.
> Do you know where to get, maybe a different or older build 
> than the one available on the kitware-site? I even did an 
> uninstall, and manually ereased all remaining files, did a 
> new install and put the dll in the system-path. The dll are 
> as well loaded perfectly, but again i get this error.
> 
> --Chris
> 
> -----Ursprüngliche Nachricht-----
> Von: R K Shyam Prakash [mailto:ramakrishna.prakash at quest-global.com] 
> Gesendet: Montag, 10. Mai 2004 14:08
> An: 'Christian'; vtkusers at vtk.org
> Betreff: RE: [vtkusers] java.lang.UnsatisfiedLinkError: 
> VTKInit again and again
> 
> Chris,
> 	Following are the few steps you can try.
> 1. Have all vtk dll's in your system path.
> 2. Make sure you use the vtk.jar and the vtk dll's of the 
> same build 3. Also look for dll conflicts. If you have two 
> sets of vtk dll's (which are from different builds) in your 
> system path, then it could pose a problem. So it is best to 
> have only one set of complete vtk dll's in your path.
> 
> --Shyam
> 
> > -----Original Message-----
> > From: Christian [mailto:schnabilo.chris at gmx.de]
> > Sent: Monday, May 10, 2004 5:11 PM
> > To: 'R K Shyam Prakash'; vtkusers at vtk.org
> > Subject: AW: [vtkusers] java.lang.UnsatisfiedLinkError: 
> > VTKInit again and again
> > 
> > 
> > Dear rp,
> > 
> > i am sorry to say that it still does not work. Even if i add
> > your code and include all the necessary dlls it still does 
> > not work. I still believe, that there is something wrong with 
> > this binary. It still does not work. I try this for about a 
> > week, but nothing hepls.... What can i do about that??
> > 
> > Best regards,
> > chris
> > 
> > 
> > 
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: R K Shyam Prakash [mailto:ramakrishna.prakash at quest-global.com]
> > Gesendet: Montag, 10. Mai 2004 13:38
> > An: 'Christian'; vtkusers at vtk.org
> > Betreff: RE: [vtkusers] java.lang.UnsatisfiedLinkError: 
> > VTKInit again and again
> > 
> > Chris,
> > 	Bingo. You need to load vtkFilteringJava.dll as
> > vtkPolyDataSource(the super class of vtkSphereSource) belongs 
> > to vtkFiltering package.
> > 
> > --Shyam
> > 
> > > -----Original Message-----
> > > From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On 
> > > Behalf Of Christian
> > > Sent: Monday, May 10, 2004 4:43 PM
> > > To: vtkusers at vtk.org
> > > Subject: [vtkusers] java.lang.UnsatisfiedLinkError: VTKInit
> > > again and again
> > > 
> > > 
> > > Hello vtkUsers,
> > > 
> > > I send this question, because i am totaly out of ideas on 
> how to get 
> > > the vtk-binaries running und Windows XP. I already searched the 
> > > archive for all relating topics on this, but no one 
> seemed to found 
> > > an solution to this problem.
> > > 
> > > First of all i installed the available vtk 4.2 binaries. Then i 
> > > createt a new project in my eclipse enviroment using one of the 
> > > javaexamples.
> > > 
> > > Now, the dll itself are alll found and loaded using the following:
> > > 
> > > static { 
> > > 	   System.loadLibrary("vtkCommonJava"); 
> > > 	   System.loadLibrary("vtkIOJava"); 
> > > 	   System.loadLibrary("vtkImagingJava"); 
> > > 	   System.loadLibrary("vtkGraphicsJava"); 
> > > 	   System.loadLibrary("vtkRenderingJava"); 
> > > 	 }
> > > 
> > > If i do not include the dlls i get the typicall
> > > java.lang.UnsatisfiedLinkError: no vtkCommonJava in 
> > > java.library.path Error-Messages.
> > > 
> > > So it looks like the dlls are all loaded when i include 
> them into my 
> > > path. So far so good.
> > > 
> > > Now if i use only one command relating to vtk.jar like:
> > > 
> > > vtkSphereSource sphere = new vtkSphereSource();
> > > 
> > > everything crashes with the following Error:
> > > 
> > > java.lang.UnsatisfiedLinkError: VTKInit
> > > 	at vtk.vtkSphereSource.VTKInit(Native Method)
> > > 	at 
> vtk.vtkObject.<init>(C:/martink/vtk42/vtkdist/java/vtk/vtkObje
> > > ct.java:98
> > > )
> > > 	at 
> > > vtk.vtkProcessObject.<init>(C:/martink/vtk42/vtkdist/java/vtk/
> > > vtkProcess
> > > Object.java:86)
> > > 	at 
> > > vtk.vtkSource.<init>(C:/martink/vtk42/vtkdist/java/vtk/vtkSour
> > > ce.java:86
> > > )
> > > 	at 
> > > vtk.vtkPolyDataSource.<init>(C:/martink/vtk42/vtkdist/java/vtk
> > > /vtkPolyDa
> > > taSource.java:30)
> > > 	at 
> > > vtk.vtkSphereSource.<init>(C:/martink/vtk42/vtkdist/java/vtk/v
> > > tkSphereSo
> > > urce.java:158)
> > > 	at PBufferTest.main(PBufferTest.java:56)
> > > Exception in thread "main"
> > > 
> > > I tried almost everything, but it does not work!
> > > Also there is terribly few information on how to install 
> 4.x version 
> > > of vtk on windows or how to work with java.
> > > 
> > > I am really looking forward to find some help among the 
> people who 
> > > use vtk with java :-)
> > > 
> > > Many thanks in advance,
> > > Chris
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > This is the private VTK discussion list.
> > > Please keep messages on-topic. Check the FAQ at:
> > <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkuser> s
> > 
> 




More information about the vtkusers mailing list