question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DLL for JNI Integration on non-linux machines?

See original GitHub issue

As of now, I want to integrate Porcupine with Java through JNI, as you know this means that the dll must be built specifically for JNI Integration (through JNI Wrappers)

JNIEXPORT void JNICALL Java_package_name_ClassName_methodName(JNIEnv* env, jobject thiz) {}

I have only found this wrappers in android’s .so libs, but because I want to implement it in Java, I cannot implement it on a Windows PC. I am using an AMD64 arch. Is there any way I can build this on my own? If not, could you provide me the modified dll?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
zsmaguccommented, Jul 6, 2018

Win x64 libjni.zip

0reactions
cogmetacommented, Feb 20, 2019

@tatanpoker09 and @zsmaguc Please help. I am getting following error

exception in thread “main” java.lang.UnsatisfiedLinkError: C:\xxx\porcupine_java\ai\picovoice\porcupine\jni\libjni.dll: Can’t find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at ai.picovoice.porcupine.Porcupine.<clinit>(Porcupine.java:29)

I have following libs in ./jni folder

20-02-2019 10:25 <DIR> … 19-02-2019 23:10 51,330 libjni.dll 19-02-2019 22:49 141,942 libpv_porcupine.dll 19-03-2017 02:27 632,800 msvcrt.dll

Read more comments on GitHub >

github_iconTop Results From Across the Web

DLL for JNI Integration on non-linux machines? #45 - GitHub
As of now, I want to integrate Porcupine with Java through JNI, as you know this means that the dll must be built...
Read more >
creating dll for JNI?. — oracle-tech
Hello! I've completed two JNI examples in Linux Ubuntu 11.04: 1. http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniexamp.
Read more >
Java Native Interface (JNI) - Java Programming Tutorial
dll " in Windows; or "libhello.so " in Unixes/Mac OS X. This library shall be included in Java's library path (kept in Java...
Read more >
Can't load library error FREngine.Jni.dll – Help Center - ABBYY
Hi Team, I am trying to create a JAVA application using FREngine version 12 Linux on Windows 10 machine.While running the Hello java......
Read more >
C++ DLL does not run on different machine - Stack Overflow
I am developing a simple c++ application to generate a dll which later I am using in JNI to run native api calls,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found