Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Strange JNI problem  RSS feed

 
Andrew Safonov
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
I've simple HelloWorld programm written in JNI&C
and it works.
But when I try to compile multithreaded application JNI_CreateJavaVM returns JNI_EVERSION error.
JDK 1.4
vm_args.version = 0x00010002;
This app is samba with embedded JNI
to start some java code.
Any suggestions?
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ugh --
It looks like you have a version mismatch between the VM your C code expects to find (0x10002 or JDK 1.2) and the one it's got.
Try adding this to your code:
#define JNI_VERSION_1_4 0x00010004
If this works, you will of course send me much money.
 
Andrew Safonov
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I've to say it doesn't work. And thats a great
tragedy for your vallet and my work
I really don't know what happen - the same libraries are including...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!