diff --git a/java/README.md b/java/README.md index 4919578b1..a734273d6 100644 --- a/java/README.md +++ b/java/README.md @@ -1,12 +1,12 @@ Prerequisites ------------- -* JDK 24 +* JDK 22 * Maven 3.9.6 or later -Please build libcuvs (`./build.sh libcuvs` from top level directory) before building the Java API. +Please build libcuvs (`./build.sh libcuvs` from top level directory) before building the Java API with `./build.sh` from this directory. Building -------- -./build.sh will generate the libcuvs_java.so file in internal/ directory, and then build the final jar file for the cuVS Java API in cuvs-java/ directory. +`./build.sh` will generate the libcuvs_java.so file in internal/ directory, and then build the final jar file for the cuVS Java API in cuvs-java/ directory. diff --git a/java/build.sh b/java/build.sh index b06cf2fac..162c9e83f 100755 --- a/java/build.sh +++ b/java/build.sh @@ -1,9 +1,6 @@ export CMAKE_PREFIX_PATH=`pwd`/../cpp/build -cd internal -cmake . -cmake --build . -cd .. -mvn install:install-file -DgroupId=com.nvidia.cuvs -DartifactId=cuvs-java-internal -Dversion=0.1 -Dpackaging=so -Dfile=./internal/libcuvs_java.so - -cd cuvs-java -mvn package +cd internal && cmake . && cmake --build . \ + && cd .. \ + && mvn install:install-file -DgroupId=com.nvidia.cuvs -DartifactId=cuvs-java-internal -Dversion=0.1 -Dpackaging=so -Dfile=./internal/libcuvs_java.so \ + && cd cuvs-java \ + && mvn package