[vtkusers] libraries link error

Bernadette Louat bernadette.louat2 at mail.dcu.ie
Thu Jun 12 11:24:52 EDT 2003


Thank you, the one which has worked is %JAVA_HOME%\jre\bin....in my Path
variable, there are too much jawt.dll everywhere

but I 'm still stuck with vtkPanel/vtkCanvas ... I have not done the
compilation by myself... but the two classes are definitely in the vtk.jar
again thanks a lot!!!

----- Original Message -----
From: "CEZARD Yann" <Yann.CEZARD at ifp.fr>
To: "'Bernadette Louat'" <bernadette.louat2 at mail.dcu.ie>; "vtk users"
<vtkusers at public.kitware.com>
Sent: Thursday, June 12, 2003 3:56 PM
Subject: RE: [vtkusers] libraries link error


Add to your PATH environnement variable :
%JAVA_HOME%\jre\bin
where %JAVA_HOME% is your JDK installation path.

Should also work if you add it to the -Djava.library.path I think.
That's where jawt.dll can be found.


For the vtkPanel problem, I have no idea...
Did you compile your VTK distrib yourself or install it from binaries ?

Hope this help.

Yann

-----Message d'origine-----
De : Bernadette Louat [mailto:bernadette.louat2 at mail.dcu.ie]
Envoyé : jeudi 12 juin 2003 16:46
À : vtk users
Objet : [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
java.lang.UnsatisfiedLinkError: D:\Program
Files\vtk42\bin\vtkRenderingJava.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at Cone.(Cone.java:22)
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:
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
(source unavailable)
 1 error
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
_______________________________________________
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://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list