I am making a call from within Java to a jnilib function and get different logs on PPC and Intel. My function definitions are as follows:
private native int initHandler(long vendorID, long productID);
JNIEXPORT jint JNICALL Java_com_sue_protocol_SerialPortObserverThread_initHandler( JNIEnv *env, jobject obj, jlong usbVendor, jlong usbProduct)
When initHandler() is called, the logs differ on the platforms:
Mac OS X/10.5.8/ppc, Java 1.5.0_22 Looking for devices matching vendor ID=0 and product ID=7982.
Mac OS X/10.6.3/x86_64, Java 1.6.0_17 Looking for devices matching vendor ID=7982 and product ID=10.
The sample source for this project can be found on http://github.com/vinzenzweber/USBEventHandler
What do I need to do to get the JNI call right on ALL platforms?