From 66cfd66f512b9c6accb3e045c7683b9df63b887d Mon Sep 17 00:00:00 2001 From: Martin Desruisseaux Date: Sat, 12 May 2018 15:01:41 +0200 Subject: Use more explicit java options in the documentation (e.g. --class-path instead of -cp). --- jniwrap/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jniwrap/README.md b/jniwrap/README.md index 3cce43c0..3a6b35be 100644 --- a/jniwrap/README.md +++ b/jniwrap/README.md @@ -42,7 +42,7 @@ Beyond the ones already put by PROJ, you need: * Ant 1.9.8+, to run the build. * For execution: * If a Java version less than the current version on the local machine is desired, - add an `release` attribute in the `javac` task of `build.xml`. + add a `release` attribute in the `javac` task of `build.xml` before to compile. @@ -107,10 +107,10 @@ we assume that PROJ was compiled with the right flag to support the bridge to Ja Therefore we have a library called `proj.jar`. Thus we compile the `Main.java` with the command: - javac -classpath /proj.jar Main.java + javac --class-path /proj.jar Main.java and execute the created test case with: - java -cp .:/proj.jar -Djava.library.path= Main + java --class-path .:/proj.jar -Djava.library.path= Main That's it, enjoy! -- cgit v1.2.3