Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

jni .so file doesn't work #32

Open
zzang9083 opened this issue Aug 14, 2016 · 1 comment
Open

jni .so file doesn't work #32

zzang9083 opened this issue Aug 14, 2016 · 1 comment

Comments

@zzang9083
Copy link

I'm trying to build the Java port of cld on centos 64-bit , using Virtualbox.
I followed your 'README.md' and Setting was finished.
i made new java project and i move 'cld/ports/java/java/src' to new '/src'.
but it doesn't work.
error is

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.mzsanford.cld.CompactLanguageDetector.detectLanguageDetails(Ljava/lang/String;ZZZZLjava/lang/String;)Lcom/mzsanford/cld/LanguageDetectionResult; at com.mzsanford.cld.CompactLanguageDetector.detectLanguageDetails(Native Method) at com.mzsanford.cld.CompactLanguageDetector.detect(CompactLanguageDetector.java:23) at com.mzsanford.cld.CompactLanguageDetector.main(CompactLanguageDetector.java:41)

what should i do?

@mzsanford
Copy link
Owner

I have two Dockerfiles in the tests directory that build the Java port for OpenJDK and the Oracle JDK respectively. Try out docker build -t test/cld:centos6-openjdk -f tests/Dockerfile.centos6.openjdk . and let me know if that works for you … tests/Dockerfile.centos6.openjdk may contain whatever is missing from the build steps. Let me know what CentOS version and I can create another Dockerfile to try and replicate the error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants