[vtkusers] building vtk java

Randy Heiland heiland at ncsa.uiuc.edu
Fri Jan 19 12:26:32 EST 2001


On Jan 19,  9:56am, harsh at lanl.gov wrote:
> Subject: [vtkusers] building vtk java
> Hi,
>
> I'm sure I'm doing something wrong But I don't know what. I'm trying to
> build vtkjava on Linux ( Debian Potato r2, kernel 2.2.15). Afterrading past
> e-mails I tried configure with{opengl,x,java.shared,patented}. In user.make
> I have the following definitions:
>
>
> # if you want to try the java support you'll need to set the following
> # variables to match your environment and uncomment them
> #
> JDKHOME=/usrA/jdk13/jdk1.3
> JAVAC=${JDKHOME}/bin/javac
> JAR=${JDKHOME}/bin/jar
> JAVA_CLASS_HOME=/usrA/jim/java
> CLASSPATH=/usrA/jim/java
> JAVAH=${JDKHOME}/bin/javah
> JAVA_INCLUDES=-I${JDKHOME}/include
> JAVA_CXX_LIB=/usr/lib/gcc-lib/i386-linux/2.95.2/libstdc++.a
> /usr/lib/gcc-lib/i386-linux/2.95.2/libgcc.a
> #JAVA_CXX_LIB=/common/software/g++-2.7.1/sun4/5.4/lib/libiberty.a
> /common/software/g++-2.7.1/sun4/5.4/lib/libstdc++.a /common/s
> oftware/g++-2.7.1/sun4/5.4/lib/gcc-lib/sparc-sun-solaris2.4/2.7.1/libgcc.a
>
>
> The e-mail I've read said to define JAVA_CLASS_HOME and CLASSPATH correctly,
> but I'm really new to java so I'm not sure what correctly is. I've tried
> vtk3.2/java/vtk ( where the .java files are ) and /usrA/jim/java ( a
directory
> in my space)._
>
> When I try do the build, the make procedure enters common, builds the
> libVTKCommon.so, parses the common routines and places the .java files in
> /usrA/vtk3.2/java/vtk and then fails on the first call to javac when
> tring to compile vtkActor2D.java with the error message can't resolve
> symbol: class vtkProp.
>
> What am I doing wrong??
> How_should the *CLASS* environment symbol be set?
> How should JAVA_CXX_LIB symbol be set?

Jim,

Here's my setup:

JDKHOME=/usr/java/jdk1.3
JAVAC=${JDKHOME}/bin/javac
JAR=${JDKHOME}/bin/jar
JAVA_CLASS_HOME=/usr/local/src/vtk3.2/java
JAVAH=${JDKHOME}/bin/javah
JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/linux
JAVA_CXX_LIB=

and env var:
CLASSPATH=.:/usr/local/src/vtk3.2/java

--Randy




More information about the vtkusers mailing list