You are not logged in.
I want to compile
https://aur.archlinux.org/packages/areca-beta/
There is a line in build():
CPATH=$CPATH:$JAVA_HOME/include:$JAVA_HOME/include/linux ant -buildfile build.xmlbut $JAVA_HOME is not set anymore. Still I need the location of $JAVA_HOME/include so I can compile jni.
How can I find out the location of jni.h?
Last edited by SanskritFritz (2014-11-10 18:03:38)
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
I'm not sure I understand, have you tried exporting JAVA_HOME or setting it in the PKGBUILD?
$ pkgfile -v jni.h
extra/jdk7-openjdk 7.u71_2.5.3-1 /usr/lib/jvm/java-7-openjdk/include/jni.h
extra/jdk8-openjdk 8.u25-1 /usr/lib/jvm/java-8-openjdk/include/jni.h
community/classpath 0.98-7 /usr/include/jni.hOffline
Well, the line I quoted from the areca-beta PKGBUILD assumes $JAVA_HOME is set and this was the case until the recent Java upgrade. Now I have to find a way to determine JAVA_HOME, but I don't know how. (the PKGBUILD has to set $CPATH for the compiler in order to be able to include jni.h).
So in a nutshell, all I want to know, how can I determine the path which was formerly set in $JAVA_HOME.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
What I found so far are:
> whereis java
java: /usr/bin/java /usr/share/java /usr/lib/jvm/java-7-openjdk/bin/java /usr/share/man/man1/java.1.gz
> readlink $(which java)
/usr/lib/jvm/default-runtime/bin/javaOr one can simply use
/usr/lib/jvm/defaultWhich one should I use? OR what is the canonical way for determining where my default java home dir is?
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Ok, I should have read the wiki more carefully, especially this part:
https://wiki.archlinux.org/index.php/Ja … linux-java
This actually gave me the answer to my question. According to the wiki as a packager I can expect any package providing java-environment to be installed in /usr/lib/jvm/ and providing the link /usr/lib/jvm/default.
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline
Ok, I should have read the wiki more carefully
That's why I was confused :-)
Offline
SanskritFritz wrote:Ok, I should have read the wiki more carefully
That's why I was confused :-)
Oh come on, don't be so picky ![]()
zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)
Offline