From f828ea79a8fc939be9ceb0f368ec57887b7c60f9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 7 Apr 2008 11:33:46 +0200 Subject: [PATCH] Using JAVA_HOME to determine jni.h location. --- libyaz4j/build.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) mode change 100644 => 100755 libyaz4j/build.sh 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 -- 1.7.10.4