I am trying to access a native library from Java and running into same exception again and again. The native code is mentioned below

typedef void * AHANDLE;

A_STATUS A_API A_CreateContext(
AHANDLE * PtrContextHandle, // [out]
unsigned long Flags, // [in]
unsigned long ApiVersion ); // [in]

I defined the native method in my code as follows,
public native Object A_CreateContext(long Flags, long ApiVersion);

I also tried to change the native method to
A_CreateContext(Object PtrContextHandle, long Flags, long ApiVersion);

But I get the same exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.mycomp.utils.ReadDrive.A_CreateContext(JJ)Ljav a/lang/Object;

Pls help me in resolving this issue.