Catch UnsatisfiedLinkError in Java example.
GitOrigin-RevId: d6e3f5cfd21593e1ae2861559ddcac13a1da85c4
This commit is contained in:
parent
4c781ebb7b
commit
99ce6f882a
@ -47,7 +47,6 @@ add_custom_target(build_java
|
|||||||
DEPENDS td_generate_java_api
|
DEPENDS td_generate_java_api
|
||||||
)
|
)
|
||||||
|
|
||||||
set(JAVA_SOURCE_PATH "${TD_API_JAVA_PATH}/${TD_API_JAVA_PACKAGE}")
|
|
||||||
add_custom_target(generate_javadoc
|
add_custom_target(generate_javadoc
|
||||||
COMMAND ${Java_JAVADOC_EXECUTABLE} -d ${JAVA_OUTPUT_DIRECTORY}/../docs org.drinkless.tdlib
|
COMMAND ${Java_JAVADOC_EXECUTABLE} -d ${JAVA_OUTPUT_DIRECTORY}/../docs org.drinkless.tdlib
|
||||||
WORKING_DIRECTORY ${TD_API_JAVA_PATH}
|
WORKING_DIRECTORY ${TD_API_JAVA_PATH}
|
||||||
|
@ -54,7 +54,11 @@ public final class Example {
|
|||||||
private static volatile String currentPrompt = null;
|
private static volatile String currentPrompt = null;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
try {
|
||||||
System.loadLibrary("tdjni");
|
System.loadLibrary("tdjni");
|
||||||
|
} catch (UnsatisfiedLinkError e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void print(String str) {
|
private static void print(String str) {
|
||||||
|
Loading…
Reference in New Issue
Block a user