please name the native library and where exactly you have placed it.
I am using SAP JCo API for connecting to SAP R/3 Systems.
This API contains a native dll and a wrapper jar which encapsulates the native methods via JNI into java methods.
The lib I have placed under IntegrationServer/lib, the jars is placed under IntegrationServer/packages/WmSAP/code/jars/static (as per Adapters documentation).
Please note the static portion in the path as this is required to load the jar statically during startup.
OK, I am not doing Java development on this directly, but it might help to understand the different layer.
In your case the jar should be placed under IntegrationServer/lib/jars/custom.
Shutdown and start the IntegrationServer otherwise the dll and the jar will not be picked up correctly during startup.
Not sure if this is working in Local Service Development Scenario.
Here it the sample java that works well with the dll and jar on java program but when we code it in SAG it throws the below error
Could not run ‘Sample’
java.lang.reflect.InvocationTargetException: Link Error: Native Library C:\SoftwareAgl\IntegrationServer\instances\default\lib\java.dll already loaded in another classloader
DLL file is there only in SAG location I tried by placing on win32 earlier and changed the wrapper config too. It gives this error whenevr we make any changes on the code