r/java • • Jul 26 '15

Java and C++ Video Tutorial – Use Java Native Interface to create Text-to-Speech application

http://blog.keinesorgen.net/2015/07/26/java-and-c-video-tutorial-use-java-native-interface-to-create-text-to-speech-application/
42 Upvotes

1 comment sorted by

11

u/HairyOldFart Jul 26 '15

No problem with the tutorial but JNI is rarely used because a crash in the native code will take down the JVM. Better to loosely link via a socket or embedded web server. A little more complex but much safer especially for web apps.