Unknown exception in JNI code OpenCv, Windows 7 64bit platform
I am using OpenCv 2.4.5 on Windows 7 64 bit platformm. I wrote program to capture image from camera. I can able to run successful on Mac. But on Windows 7 64 bit platform, Camera light is starting and stopping so it is taking frame from camera. Width of Frame grabbed from camera is also 640 so it is taking frame from camera.
But when I write frame to File using this below line of code
Highgui.imwrite("camera.jpg", frame);
then it gives me error java.lang.Exception: Unknown exception in JNI code {highgui::imwrite_11()}
Same program works fine on Mac. Except on windows I am using dll while on mac dylib file for OpenCV library.