compiling vtk with java

Randy Heiland heiland at ncsa.uiuc.edu
Tue Jun 15 07:09:33 EDT 1999


On Jun 15, 11:25am, Miguel Angel Martin Fernandez wrote:
> Subject: compiling vtk with java
>
> Hi, I'm trying to compile VTK v2.2 with java and I cannot do it. I'm usin
> jdk1.1.3 and Linux Red Hat 6. The error output from the compiler is:
>
> /usr/local/jdk1.1.3/bin/javac -d /disco2/software/javalib
> ../java/vtk/vtkActor2D.java
> ../java/vtk/vtkActor2D.java:7: Superclass vtk.vtkProp2D of class
> vtk.vtkActor2D not found.
> public class vtkActor2D extends vtkProp2D
>
> 1 error
> make[1]: *** [../java/vtk/vtkActor2D.class] Error 1
> make[1]: Leaving directory '/disco2/software/vtk/common'
> make: *** [build_common] Error 2
>
> I have the JDK installed in /usr/local/jdk1.1.3 and vtk in
> /disco2/software

I believe the trick here is:  in <java-home>/java/vtk (where all the
Java-wrapped vtk classes live, i.e.  vtk3DSImporter.java, etc.),
you simply do a "javac *.java" and then move/copy all the .class(es) to an
approp java dir (e.g., /usr/local/jdk1.1.3/vtk).

(guess you know jdk1.1.7 is available; even 1.2 though I've tried it)
--Randy



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list