From: Adam Dickmeiss Date: Mon, 7 Apr 2008 09:33:46 +0000 (+0200) Subject: Using JAVA_HOME to determine jni.h location. X-Git-Tag: v1.0~41 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=f828ea79a8fc939be9ceb0f368ec57887b7c60f9;p=yaz4j-moved-to-github.git Using JAVA_HOME to determine jni.h location. --- diff --git a/libyaz4j/build.sh b/libyaz4j/build.sh old mode 100644 new mode 100755 index d23d1d8..05768a5 --- a/libyaz4j/build.sh +++ b/libyaz4j/build.sh @@ -1,8 +1,5 @@ #!/bin/bash - -JNI_DIR=$( find / -type f -name jni.h 2>/dev/null | xargs dirname ); - -echo using JNI include directory - $JNI_DIR; +JNI_DIR=${JAVA_HOME}/include swig -I"include" -I"../dependencies/yaz-2.1.28/include/yaz/" -outdir ../src/org/yaz4j/jni -package org.yaz4j.jni -o src/libyaz4j.cpp -c++ -java libyaz4j.i