[vtkusers] vtkPanel class file in package occurs run-time error

Ivan Kuo kch90 at dvis.cs.ccu.edu.tw
Fri Jan 3 08:31:01 EST 2003


Thanks!
After using the vtk Nightly version for java and ccmake, i can packet the vtkPanel.class in vtk.jar. I can use that vtk.jar (contain vtkPanel) both in Windows and Linux while I install the same version of noghtly vtk.




Ivan Kuo  

kch90 at cs.ccu.edu.tw

  ----- Original Message ----- 
  From: Gopalakrishnan, Gowri 
  To: 'Ivan Kuo' ; vtk users 
  Sent: Friday, January 03, 2003 5:45 PM
  Subject: RE: [vtkusers] vtkPanel class file in package occurs run-time error


  Since the native interface files have their headers pre-defined by vtk already (such as the package etc) you cannot pack them into a different package.

  The native codes will not have your new package names in the header and hence they cannot be called. If you really must have a different package etc then

  You must regenerate all the native interface header files for all the java classes (see the java.sun.com tutorial for more details on native interface )

   

  Regards

  Gowri

   

   

  -----Original Message-----
  From: Ivan Kuo [mailto:kch90 at dvis.cs.ccu.edu.tw] 
  Sent: Thursday 02 January 2003 05:32 
  To: vtk users
  Subject: [vtkusers] vtkPanel class file in package occurs run-time error

   

   

  Hi all,

      I'm trying to packet my vtk java class files and the vtkPanel class file into a directory, so I add "package project;" to the vtkPanel.java and my vtk java files. But i got a run-time error (below) when executing. However, It is executable without package the vtkPanel file.

   

  Exception in thread "main" java.lang.UnsatisfiedLinkError: SetSizeInternal
          at project.vtkPanel.SetSizeInternal(Native Method)
          at project.vtkPanel.setSize(vtkPanel.java:58)
          at project.isoSurface.<init>(isoSurface.java:53)
          at project.isoSurface.main(isoSurface.java:303)

  Any help is appreciated!

   

  Ivan Kuo  

  kch90 at cs.ccu.edu.tw

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030103/8e10b744/attachment.htm>


More information about the vtkusers mailing list