Java's JNI Interface Problem
Posted on 2006-03-20
Hey to all the Experts, :-)
- I have a problem that needs solving, hope you can help me as I have been at it for some time and have not got anywhere.
- I have some java code that basically prints out some information, and then sends the information to a text file.
- What I need is for the java program to call some C code, where the C Code reads the text file and then sends the data of the file to a port, say parallel.
- Now the problem that I am basically having is understanding how I would exactly intergrate the C Code in the java program, so that the java program just calls the C function, so it can read the text file and I think you get the rest of the picture....
Please provide some actual code!!
Or good examples of code from web, or some really good tutorials
Points will be awarded for the best responses