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
1 Petteri Räty wrote:
2 > After testing the new java setup I have found that packages using jni
3 > have problems. The problem is with locating jni.h. There is no standard
4 > way to find these so this is what two packages I have so far looked at use.
5 >
6 > 1.sys-libs/db
7 > db looks at path for the location of javac and tries to make the
8 > location from that.
9 >
10 > 2.dev-java/jdictrayapi
11 > jdictrayapi expects to find JAVA_HOME in the environment
12 >
13 > So we should decide a solution to this problem. One bad but working
14 > solution to get stuff working quickly is to play with C(XX)FLAGS. We
15 > could also make symlinks to /usr/include or we can just patch all the
16 > packages using jni so that they work how we want them to. java-config -0
17 > can be used to set the include locations inside the Makefiles.
18
19
20 It would of course be best if whatever solution we come up with doesn't
21 require a lot of patching.
22
23 Radical idea: Can we provide one "standard" jni.h, and put it into, say,
24 javatoolkit?
25
26 -- Karl T
27 --
28 gentoo-java@g.o mailing list