title: Embed Java library in C
body: <p>I'm going to write a Java server/client application, in which the client is not really a client (it doesn't have a main), but it's a library.</p>
  
  <p>Aside, I have to develop a C module (a fuse driver) that needs to interact with the server, so it needs to invoke client's function.</p>
  
  <p>I've founded many examples of C functions invoked from Java application, but no one of what I need.</p>
  
  <p>Can you give me a suggest or some hints?</p>
  
  <p>EDIT</p>
  
  <p>because someone could not understand what i need, I want to be more clear: I have a server, and a program can interact with it only using a library, written in Java. The real client is written in C, and it has to be able to invoke the library's functions, so in C I have to call java method</p>