Re: [vtkusers] VTK Java dreaded java.lang.UnsatisfiedLinkError: RenderCreate

Bartlomiej Wilkowski wilku_83 at o2.pl
Mon Dec 4 12:53:04 EST 2006


Hello Stephen

i am not sure if it will help but:

you said that you have in the path the C:\Program Files\VTK\bin

did you check if you have vtkRenderingJava.dll in that path?

I am using Eclipse and VTK in Java and all the examples are working. The difference is that I use java 1.5 and vtk 5.0.2 but I dont think it is so a big problem.

try also the page: http://www.spinet.pl/~wilku/vtk-howto/

if it helps you, dont hesitate to ask about my config.

good luck

Bartek

---- Wiadomość Oryginalna ----
Od: Stephen <mailinglists at icaril.eclipse.co.uk>
Do: vtkusers at vtk.org
Data: 28 listopada 2006 6:32
Temat: [vtkusers] VTK Java dreaded java.lang.UnsatisfiedLinkError:  RenderCreate

> dear all,
> 
> I am observing errors suggesting missing libraries when running VTK 
> examples that use objects such as vtkPanel and vtkCanvas (see below). In 
> previous JNI codes I have seen these types of messages when dlls aren't 
> on the path. I also note that the very simple Cone demo works, but 
> examples from
> 
> http://ij-plugins.sourceforge.net/vtk-examples/index.html
> 
> which use the vtkPanel etc, just crash at runtime with unsatisified link 
> errors.
> 
> Having tinkered with path settings and various rebuilds I am now at a 
> loss as to how to approach this, any suggestions? Is there a definitive 
> guide to using VTK and Java somewhere on the web?
> 
> System config
> 
> OS Windows XP SP2
> Java 1.4.2
> VTK 5.1 built using CMake, VS 2003 .NET
> 
> I built VTK from the current source using Cmake + VS 2003 .NET  and Java 
> 1.4.2. I added the directory with the generated dlls to my path, and 
> also tried adding the awt.dll to the same directory as suggested in the 
> FAQ, to no avail. Does the directory I compile in get hard coded into 
> the resulting code?
> 
> VTK dll dir = C:\Program Files\VTK\bin
> 
> 
> java.lang.UnsatisfiedLinkError: RenderCreate
>         at vtk.vtkPanel.Render(vtkPanel.java:137)
>         at vtk.vtkPanel.paint(vtkPanel.java:160)
>         at 
> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:63)
> 
>         at sun.awt.RepaintArea.paint(RepaintArea.java:216)
>         at 
> sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:293)
>         at java.awt.Component.dispatchEventImpl(Component.java:3774)
>         at java.awt.Component.dispatchEvent(Component.java:3574)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:536)
>         at 
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
> read.java:237)
>         at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
> ad.java:187)
>         at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:181)
> 
>         at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:173)
> 
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:136)
> 
> cheers
> 
> Steve
> 
> 
> 
> 
> 
> _______________________________________________
> 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




More information about the vtkusers mailing list