Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

java: run: Add java/.libs to LD_LIBRARY_PATH so JVM finds the right J…

…NI file.
  • Loading branch information...
commit 6aa64ee3a3f1c990b5f9ce537f2b840273c3c1ba 1 parent 1695498
@rwmjones rwmjones authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  java/run-bindtests
  2. +1 −1  java/run-java-tests
  3. +2 −2 run.in
View
2  java/run-bindtests
@@ -18,5 +18,5 @@
set -e
-$JAVA_EXE -Djava.library.path=.libs Bindtests > bindtests.tmp
+$JAVA_EXE Bindtests > bindtests.tmp
diff -u $srcdir/../bindtests bindtests.tmp
View
2  java/run-java-tests
@@ -20,5 +20,5 @@ set -e
for f in $(ls -1 t/*.class | fgrep -v \$); do
classname=$(basename $f .class)
- $JAVA_EXE -Djava.library.path=.libs -ea $classname
+ $JAVA_EXE -ea $classname
done
View
4 run.in
@@ -79,9 +79,9 @@ export PATH
# Set LD_LIBRARY_PATH to contain library.
if [ -z "$LD_LIBRARY_PATH" ]; then
- LD_LIBRARY_PATH="$b/src/.libs:$b/gobject/.libs"
+ LD_LIBRARY_PATH="$b/src/.libs:$b/java/.libs:$b/gobject/.libs"
else
- LD_LIBRARY_PATH="$b/src/.libs:$b/gobject/.libs:$LD_LIBRARY_PATH"
+ LD_LIBRARY_PATH="$b/src/.libs:$b/java/.libs:$b/gobject/.libs:$LD_LIBRARY_PATH"
fi
export LD_LIBRARY_PATH
Please sign in to comment.
Something went wrong with that request. Please try again.