[vtkusers] Problem in VTK with JAVA on Redhat Linux9

R K Shyamprakash ramakrishna.prakash at quest-global.com
Thu Jul 17 07:21:14 EDT 2003


Jeff,
      Thanks. That indeed was the problem. But now the program gives
following error

Exception in thread "main" java.lang.NoClassDefFoundError
vtk/vtkPolyDataSource

I checked the jar file and the above mentioned class does exists in it.

Thanks
Shyam


-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of
Jeff Lee
Sent: Thursday, July 17, 2003 4:05 PM
To: R K Shyamprakash
Cc: VTKUserList (E-mail)
Subject: Re: [vtkusers] Problem in VTK with JAVA on Redhat Linux9


sounds like the jar was built from one distribution, and you are trying
to use it with another version of vtk that you built.  if the interface
for vtkRenderWindow changed between versions, then the wrapper may
generate different jni stubs depending on the ordering/number of
methods.  in general, vtk.jar is linked intimately to the build because
it calls native methods - you cannot expect to use it with a different
version of vtk.
-Jeff

R K Shyamprakash wrote:

>Hello,
>          I have a VTK application written using JAVA wrapper. I have tried
>to run the application on Linux(Redhat 9) but the application does not
>launch and it gives following error(it runs on windows)
>
>Exception in thread "main" java.lang.UnsatisfiedLinkError:
>SetForceMakeCurrent_100
>        at vtk.vtkRenderWindow.SetForceMakeCurrent_100(Native Method)
>        at
vtk.vtkRenderWindow.SetForceMakeCurrent(vtkRenderWindow.java:412)
>        at vtk.vtkPanel.addNotify(vtkPanel.java:104)
>        at java.awt.Container.addNotify(Container.java:2045)
>        at javax.swing.JComponent.addNotify(JComponent.java:4283)
>        at java.awt.Container.addNotify(Container.java:2045)
>
>What could be the problem?
>
>Thanks
>Shyam
>
>_______________________________________________
>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/vtkusers
>
>
>
>

_______________________________________________
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/vtkusers




More information about the vtkusers mailing list