[vtkusers] Problems with vtkCanvas and vtkRenderingJava.dll

Jeff Lee jeff at cdnorthamerica.com
Fri Nov 7 10:55:57 EST 2003


see embedded comment...

MacKinnon, David wrote:

> 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.
>
which vtkPanel do you have?  these methods are protected in the cvs 
version.  I can't imagine how they ever would have been left private 
after the introduction of vtkCanvas.  Anyway, what you did is 
unneccessary if you get the latest version.
-Jeff

> 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
>





More information about the vtkusers mailing list