<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [vtkusers] Problems with vtkCanvas and vtkRenderingJava.dll</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Thank you for the information, Shyam. Part of it worked with a bit of tweaking.</FONT>
</P>

<P><FONT SIZE=2>1) I added a package vtk; to the start of vtkPanel. I noticed this when the -d option didn't create the vtk subdirectory.</FONT></P>

<P><FONT SIZE=2>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.</FONT></P>

<P><FONT SIZE=2>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.&nbsp; 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.</FONT></P>

<P><FONT SIZE=2>Any other suggestions for the vtkRenderingJava.dll problem are greatly appreciated.</FONT>
</P>
<BR>

<P><FONT SIZE=2>David,</FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Shyam Prakash</FONT>
<BR><FONT SIZE=2>To: 'MacKinnon, David'; vtkusers@vtk.org</FONT>
<BR><FONT SIZE=2>Sent: 06/11/2003 10:34 PM</FONT>
<BR><FONT SIZE=2>Subject: RE: [vtkusers] Problems with vtkCanvas and vtkRenderingJava.dll</FONT>
</P>

<P><FONT SIZE=2>David,</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Have you compiled vtkPanel.java with -d option. If not try</FONT>
<BR><FONT SIZE=2>as given below</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; javac -d . vtkPanel.java</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This will create the directory "vtk" in the present</FONT>
<BR><FONT SIZE=2>directory. Under vtk directory you will have vtkPanel.class. </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Now add the complete directory to vtk.jar as</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jar -uvf vtk.jar vtk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /vtk is the directory I</FONT>
<BR><FONT SIZE=2>mentioned above</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This should take care of your issue #3.</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; It looks like jawt.dll is not in the system path. jawt.dll</FONT>
<BR><FONT SIZE=2>can be found at</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;JAVA_INSTALL_DIR&gt;/jre/bin</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append this path to your system path and should be ready to</FONT>
<BR><FONT SIZE=2>run your vtk programs.</FONT>
<BR><FONT SIZE=2>&nbsp;</FONT>
<BR><FONT SIZE=2>--Shyam</FONT>
</P>

</BODY>
</HTML>