Update Java example README.md.

GitOrigin-RevId: 3e1a8519808240bb83a7102bda769ad769e8139e
This commit is contained in:
levlam 2018-01-28 15:43:04 +03:00
parent b339833ef9
commit d8f4e97747
1 changed files with 3 additions and 1 deletions

View File

@ -30,4 +30,6 @@ cd <path to tdlib sources>/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/.