From d8f4e97747a000af00218f01d1281d84ac1baa1e Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 28 Jan 2018 15:43:04 +0300 Subject: [PATCH] Update Java example README.md. GitOrigin-RevId: 3e1a8519808240bb83a7102bda769ad769e8139e --- example/java/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/java/README.md b/example/java/README.md index 13b3d65d..c8ece7c9 100644 --- a/example/java/README.md +++ b/example/java/README.md @@ -30,4 +30,6 @@ cd /example/java/bin java -Djava.library.path=. org/drinkless/tdlib/example/Example ``` -If you get java.lang.UnsatisfiedLinkError with "Can't find dependent libraries" you may also need to copy some dependent shared libraries to bin/. +If you get "Could NOT find JNI ..." error from CMake, you need to specify to CMake path to the installed JDK, for example, "-DJAVA_HOME=/usr/lib/jvm/java-8-oracle/". + +If you get java.lang.UnsatisfiedLinkError with "Can't find dependent libraries", you may also need to copy some dependent shared libraries to bin/.