[vtkusers] libraries link error

R K Shyamprakash ramakrishna.prakash at quest-global.com
Thu Jun 12 11:01:28 EDT 2003


set D:\Program Files\vtk42\bin in system path. Also set the directory having
jawt.dll in system path. it can be found at
<java installation dir>\jre\bin. make sure vtkPanel and vtkCanvas are in
vtk.jar. if they are not, compile them with -d option and add the class file
to vtk.jar

Shyam
  -----Original Message-----
  From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of Bernadette Louat
  Sent: Thursday, June 12, 2003 8:16 PM
  To: vtk users
  Subject: [vtkusers] libraries link error


  Hi all,
  I can't really start using vtk because I get the following error with all
examples whan I run them.
  I'm using the following command for Cone.class:
  java -Djava.library.path="D:\Program files\vtk42\bin;D:\Program
Files\vtk42\lib\vtk;D:\Program Files\vtk42\lib" -cp .;"D:\Program
files\vtk42\bin\vtk.jar" Cone
    a.. java.lang.UnsatisfiedLinkError: D:\Program
Files\vtk42\bin\vtkRenderingJava.dll: Can't find dependent libraries
    b.. at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    c.. at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
    d.. at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
    e.. at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    f.. at java.lang.System.loadLibrary(System.java:832)
    g.. at Cone.(Cone.java:22)
      a.. Exception in thread "main"
  More over Windows gives this warning :
  the application ( java.exe) cannot start, it cannot find jawt.dll. You
should reinstall the application.

  If you have any ideas...



  I have also another problem  with vtkPanel and vtkCanvas... when I compile
SimpleVTK.java, I get this strange error:
    a.. D:/Program Files/vtk42/bin/vtk.jar(vtk/vtkPanel.java) [7:1] class
vtkPanel is public, should be declared in a file named vtkPanel.java
    b.. (source unavailable)
    c..  1 error
    d.. Errors compiling SimpleVTK.
  But vtkPanel and vtkCanvas are actually in vtk.jar... I even try to
recompile them and put them again in vtk.jar... it doesn't work

  Thanks in advance
  bernadette
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030612/18b2d58b/attachment.htm>


More information about the vtkusers mailing list