aboutsummaryrefslogtreecommitdiff
path: root/jniwrap
diff options
context:
space:
mode:
authorMartin Desruisseaux <martin.desruisseaux@geomatys.com>2018-05-12 16:46:46 +0200
committerMartin Desruisseaux <martin.desruisseaux@geomatys.com>2018-05-12 16:46:46 +0200
commitaaf0f39a048d10106bb82983c8f918270680cc34 (patch)
tree2591c7bbe3a07504f25740b6abc3126627d3661a /jniwrap
parent54f0513aed8a82e75f6442b4b03900c47f1c3621 (diff)
downloadPROJ-aaf0f39a048d10106bb82983c8f918270680cc34.tar.gz
PROJ-aaf0f39a048d10106bb82983c8f918270680cc34.zip
Update JNI README.md with a note that Windows users need to use a different path separator.
Diffstat (limited to 'jniwrap')
-rw-r--r--jniwrap/README.md5
1 files changed, 3 insertions, 2 deletions
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 <path to the jar library>/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 .:<path to the jar library>/proj.jar -Djava.library.path=<path to the libproj, if needed> Main
+ java --class-path <path to the jar library>/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=<path to the libproj>` 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.