[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

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

Exception in thread "main" java.lang.NoClassDefFoundError

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


-----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.

R K Shyamprakash wrote:

>          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:
>        at vtk.vtkRenderWindow.SetForceMakeCurrent_100(Native Method)
>        at
>        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?
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>Follow this link to subscribe/unsubscribe:

This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
Follow this link to subscribe/unsubscribe:

More information about the vtkusers mailing list