[vtkusers] Problems with vtkCanvas and vtkRenderingJava.dll
MacKinnon, David
David.MacKinnon at nrc-cnrc.gc.ca
Fri Nov 7 10:17:32 EST 2003
Thank you for the information, Shyam. Part of it worked with a bit of
tweaking.
1) I added a package vtk; to the start of vtkPanel. I noticed this when the
-d option didn't create the vtk subdirectory.
2) Lock() in the vtkPanel.java was private so when vtkCanvas extended
vtkPanel and attempted to use it, a compile error was generated. I reset the
scope to protected which solved the problem.
3) vtkRenderingJava.dll is still an issue and is the point in vktPanel that
fails. I made sure jawt.dll was in the path but the problem still exists.
I'll try building the vtk libraries from source to see if that fixes the
problem. I tried compiling it yesterday (using Visual C++) but it appears
the source I obtained does not contain the java render library.
Any other suggestions for the vtkRenderingJava.dll problem are greatly
appreciated.
David,
-----Original Message-----
From: Shyam Prakash
To: 'MacKinnon, David'; vtkusers at vtk.org
Sent: 06/11/2003 10:34 PM
Subject: RE: [vtkusers] Problems with vtkCanvas and vtkRenderingJava.dll
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031107/0db9b229/attachment.htm>
More information about the vtkusers
mailing list