In this post I'll make a small temperature conversion app, in which the conversion is handled by a small C library I created. ![]() Usually you use JNI to call a library that exists on the client's LD_LIBRARY_PATH, but since we want our app to be self-contained in order to deploy with Java Web Start, we would like to ship those C libraries inside our app's JAR file, and call them from there. To use C libraries with Java one must use the Java Native Interface (JNI) framework. You basically have your JAR deployed on a server, and the user just clicks a link to a JNLP (Java Network Launching Protocol) file that downloads the JAR to the client and runs the app. ![]() We have some legacy code written in C, and we would like to be able to use that code in a Java app that the user would run from their browser, using Java Web Start. ![]() Some days ago I was given an interesting problem by my current employer. Including C code in a Java Web Start application
0 Comments
Leave a Reply. |