From aaf0f39a048d10106bb82983c8f918270680cc34 Mon Sep 17 00:00:00 2001 From: Martin Desruisseaux Date: Sat, 12 May 2018 16:46:46 +0200 Subject: Update JNI README.md with a note that Windows users need to use a different path separator. --- jniwrap/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'jniwrap') diff --git a/jniwrap/README.md b/jniwrap/README.md index d8435725..fcf0fc6f 100644 --- a/jniwrap/README.md +++ b/jniwrap/README.md @@ -127,9 +127,9 @@ Thus we compile the `Main.java` with the command: javac --class-path /proj.jar Main.java -and execute the created test case with: +and execute the created test case with (replace `:` by `;` on the Windows platform): - java --class-path .:/proj.jar -Djava.library.path= Main + java --class-path /proj.jar:. Main @@ -142,4 +142,5 @@ If an `java.lang.UnsatisfiedLinkError` is thrown at execution time, add the foll Then verify that the `libproj.so` (Linux), `libproj.dylib` (MacOS) or `libproj.dll` (Windows) file is located in one of the directories listed by above code. If this is not the case, then try configuring the `LD_LIBRARY_PATH` (Linux), `DYLD_LIBRARY_PATH` (MacOS) or `PATH` (Windows) environment variable. +Alternatively, a `-Djava.library.path=` option can be added to above `java` command. If the problem persist, adding the `-verbose:jni` option to the `java` command may help more advanced diagnostics. -- cgit v1.2.3