Gentoo Archives: gentoo-java

From: Karl Trygve Kalleberg <karltk@g.o>
To: "Petteri Räty" <betelgeuse@g.o>
Cc: gentoo-java@l.g.o
Subject: [gentoo-java] Re: the new java setup and jni
Date: Thu, 18 Aug 2005 19:55:29
Message-Id: 4304E74E.4090002@gentoo.org
Petteri Räty wrote:
> After testing the new java setup I have found that packages using jni > have problems. The problem is with locating jni.h. There is no standard > way to find these so this is what two packages I have so far looked at use. > > 1.sys-libs/db > db looks at path for the location of javac and tries to make the > location from that. > > 2.dev-java/jdictrayapi > jdictrayapi expects to find JAVA_HOME in the environment > > So we should decide a solution to this problem. One bad but working > solution to get stuff working quickly is to play with C(XX)FLAGS. We > could also make symlinks to /usr/include or we can just patch all the > packages using jni so that they work how we want them to. java-config -0 > can be used to set the include locations inside the Makefiles.
It would of course be best if whatever solution we come up with doesn't require a lot of patching. Radical idea: Can we provide one "standard" jni.h, and put it into, say, javatoolkit? -- Karl T -- gentoo-java@g.o mailing list