Forums Register Login

Strange JNI problem

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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...
What's a year in metric? Do you know this metric stuff tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 942 times.
Similar Threads
Calling java from Visual C
Invoking JVM through C++ code
Calling Java from C++
JNI problem
Here is how to create process and Image APPName.exe file instead of java or javaw
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:32:53.