Working JNI example with Java 1.8.X?

Hi, I've just spent many hours trying to get a basic JNI example working. I'm trying to call java code from c++.

The most promising tutorial was from here:http://www.codeproject.com/Articles/22881/How-to-Call-Java-Functions-from-C-Using-JNI.
I can compile it, but when I run, it tells me that it can't find jvm.dll. I then spent hours getting the JACE library to work, which claims to make this kind of thing easy, but at the end of it I got the same error. After spending even more time trying to debug the missing jvm.dll, I now suspect that it's something to do with java 1.8 not having a 'client' lib directory. But that's something else.

My question is: Does anyone have a basic JNI example which uses the latest (1.8.X) version of Java?

Thanks for the help, and excuse any nonsensical sentences. I'm tired.
Topic archived. No new replies allowed.