[vtkusers] Problem installing VTK java extensions in windows
Bradley Crouch
bdcr at jch.unimelb.edu.au
Mon Jun 19 23:04:01 EDT 2000
Hi,
I have VTK tcl extensions working, but lack getting the Java extensions
working with JDK1.2.2. I have installed both vtk312core.exe, and
vtk312java.exe. With the Java extensions I put vtk.jar in
c:\jdk1.1.2\jre\lib\ext.
To compile Java program I do:
(from C:\Program Files\vtk31\Java)
javac -d .\ VTKModel.Java
javac -d .\ vtkPanel.Java
javac -d .\ Test.Java
vtkPanel gives a error:
Note: vtkPanel.Java uses or overrides a deprecated API. Recompile with
"-deprecation" for details.
1 Warning
After recompiling with "-deprecation" I get following errors:
C:\Program Files\vtk31\Java>javac -deprecation -d ./ vtkPanel.Java
vtkPanel.Java:58: Note: The method Java.awt.peer.ComponentPeer
getPeer() in class
Java.awt.Component has been deprecated.
((DrawingSurface)this.getPeer()).getDrawingSurfaceInfo();
^
Note: vtkPanel.Java uses or overrides a deprecated API. Please consult
the
documentation for a better alternative.
1 warning
and VTKModel give error:
Note: VTKModel.Java uses or overrides a deprecated API. Recompile with
"-deprecation" for details.
h1 Warning
and after using the "-deprecation" flag I get error:
C:\Program Files\vtk31\Java>javac -deprecation -d ./ VTKModel.Java
VTKModel.Java:26: Note: The constructor Java.lang.String(byte[],int) has
been
deprecated.
String temps2 = new String(tempb,0);
^
Note: VTKModel.Java uses or overrides a deprecated API. Please consult
the
documentation for a better alternative.
1 warning
When I finally compile Test.java I get no errors using:
javac -d ./ Test.java
But when I try and run the program using:
Java Test
I get error:
Exception in thread "main" Java.lang.UnsatisfiedLinkError: VTKInit
at vtk.vtkObject.<init>(vtkObject.Java:77)
at Test.main(Test.Java:6)
So If any one can help it would be very much appreciated,
Bradley Crouch
More information about the vtkusers
mailing list