title: How to: Java listening for events captured by C thread
body: <p>I would like to create a Java program to listen for and respond to events captured by a thread in C.<br>
  Can someone explain how this can be achieved using JNI, or point me to online tutorials?</p>
  
  <p>Thank you.</p>