[vtkusers] Problems with vtkCanvas and vtkRenderingJava.dll
Shyam Prakash
ramakrishna.prakash at quest-global.com
Thu Nov 6 22:34:10 EST 2003
David,
Have you compiled vtkPanel.java with -d option. If not try
as given below
javac -d . vtkPanel.java
This will create the directory "vtk" in the present
directory. Under vtk directory you will have vtkPanel.class.
Now add the complete directory to vtk.jar as
jar -uvf vtk.jar vtk /vtk is the directory I
mentioned above
This should take care of your issue #3.
It looks like jawt.dll is not in the system path. jawt.dll
can be found at
<JAVA_INSTALL_DIR>/jre/bin
append this path to your system path and should be ready to
run your vtk programs.
--Shyam
-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of MacKinnon, David
Sent: Thursday, November 06, 2003 11:47 PM
To: 'vtkusers at vtk.org'
Subject: [vtkusers] Problems with vtkCanvas and vtkRenderingJava.dll
Hello all,
I am currently evaluating use of VTK in a research group but have
encountered a problem running any VTK code under Java 1.4. First, I have
only installed the Windows binaries on my Window 2000 workstation and
have not yet attemped rebuilding them from source code. The following
steps were completed:
1) Added vtk.jar to the CLASSPATH and vtk/bin to the search path.
2) Added vtkPanel, vtkSettings and vtkTesting to the vtk.jar. These were
obtained from the repository for VTK4.23.
3) Attempted to compile vtkCanvas so that I could add it to the jar file
but received the following compile error:
C:\temp\VTKTest\src\vtkCanvas.java:7: cannot resolve symbol
symbol : class vtkPanel
location: class vtk.vtkCanvas
public class vtkCanvas extends vtkPanel implements MouseListener,
MouseMotionListener, KeyListener
3) Undaunted, I proceeded to compile sucessfully the SimpleVTK program,
but when I attempted to run it I received the following run-time error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program
Files\vtk4
2\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 vtkPanel.<clinit>(vtkPanel.java:27)
at SimpleVTK.<init>(SimpleVTK.java:19)
at SimpleVTK.main(SimpleVTK.java:49)
This error is listed in the archives but have found no indication of how
to fix it.
Suggestions what to try next? Do I have to download the VTK source and
rebuild it?
David MacKinnon
PhD Student, Department of Systems and Computer Engineering
Carleton University, Ottawa, Canada
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031107/1c2c1c5b/attachment.htm>
More information about the vtkusers
mailing list