AW: [vtkusers] Strange problem--VTK in JBuilder

Chunyan Jiang jiang at Telematik-Institut.de
Wed Apr 16 03:46:25 EDT 2003


Jarek,
I have set the PATH as C://Programme/vtk42/bin. But it does not work. And
there is another problem in the Cone.java. There are some static definition:
  static {
     System.loadLibrary("vtkCommonJava");
     System.loadLibrary("vtkFilteringJava");
     System.loadLibrary("vtkIOJava");
     System.loadLibrary("vtkImagingJava");
     System.loadLibrary("vtkGraphicsJava");
 //    System.loadLibrary("vtkRenderingJava");
   }
Every library works well except "vtkRenderingJava". So I comment this line.
If I add it then the following error message will present when the
application runs:
The Dynamic Link Library jawt.dll can not be find at the given path:
C:\JBuilder8\jdk1.4\bin; C:\WINNT\System32;C:\WINNT\system;......

In any case the java.lang.UnsatisfiedLinkError will appear. How can I get
vtk in JBuilder?

Thanks a lot!

Chunyan

-----Ursprungliche Nachricht-----
Von: Jarek Sacha [mailto:galicjan at yahoo.com]
Gesendet: Mittwoch, 16. April 2003 03:50
An: Chunyan Jiang
Betreff: Re: [vtkusers] Strange problem--VTK in JBuilder


Chunyan Jiang wrote:

>Dear Vtk-users,
>I use vtk 4.2 with JBuilder8 in Win2000. I just try a simple example for
>test. It is Cone.java. The application can not run. When I debug it, I find
>that it will stop at the first sentence: vtkConeSource cone = new
>vtkConeSource(); The error message is as following:
>java.lang.UnsatisfiedLinkError: VTKInit 	at
vtk.vtkConeSource.VTKInit(Native
>Method) 	at
>vtk.vtkObject.<init>(C:/martink/vtk42/vtkdist/java/vtk/vtkObject.java:98)
>at
>vtk.vtkProcessObject.<init>(C:/martink/vtk42/vtkdist/java/vtk/vtkProcessObj
e
>ct.java:86) 	at
>vtk.vtkSource.<init>(C:/martink/vtk42/vtkdist/java/vtk/vtkSource.java:86)
>at
>vtk.vtkPolyDataSource.<init>(C:/martink/vtk42/vtkdist/java/vtk/vtkPolyDataS
o
>urce.java:30) 	at
>vtk.vtkConeSource.<init>(C:/martink/vtk42/vtkdist/java/vtk/vtkConeSource.ja
v
>a:114) 	at javavtk.Cone1.render(Cone1.java:35) 	at
>javavtk.Application1.<init>(Application1.java:45) 	at
>javavtk.Application1.main(Application1.java:55)
>
>It is quite strange. I have not such path: C:/martink/vtk42 in my computer.
>And I set the configure libraries as C://Programme/vtk42/bin/vtk.jar.
>
>
You need to add location of VTK Java DLLs to your system PATH variable.,
I assume that you have them in C://Programme/vtk42/bin

Jarek




More information about the vtkusers mailing list