﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
2182	Building graphviz-2.8 with Java Bindings	teewan@…	Randy McMurchy	"graphviz-2.8's configure script does not seem to properly find your Java
headers (i.e. jni.h) unless they are specifically located in your
`/usr/include` directory.

Simply passing configure a CPPFLAGS doesn't seem to do the trick, as the
generated Makefiles still do not reference the additional include and library
directories passed to it.

A solution that seems to have worked for me is to run the following in the
graphviz build directory (the one created by the tar command):

{{{
CPPFLAGS=""-I$JAVA_HOME/include -I$JAVA_HOME/include/linux"" \
./configure --prefix=/usr &&
make JAVA_LIBS=""$JAVA_HOME/lib"" JAVA_INCLUDES=""$JAVA_HOME/include""
}}}

And then, as supplied by BLFS (as user ''root''):

{{{
make install
}}}

and optionally

{{{
ln -v -s /usr/share/graphviz/doc \
         /usr/share/doc/graphviz-2.8
}}}


'''Note: ''' You must (and already should if you followed the BLFS instructions
for configuring JDK) have an environment variable JAVA_HOME which references
the prefix for your JDK installation."	defect	closed	normal	6.2.0	BOOK	SVN	medium	fixed	graphviz java bindings	
