Posted: Fri Nov 11, 2011 11:03 am Post subject: fmcojloc.dll: Can't find dependent libraries
Newbie
Joined: 09 Nov 2011 Posts: 4
While executing standalone java client program following error is logged. fmcojloc.dll is available in C:\Program Files\IBM\WebSphere MQ Workflow\BIN\
Server is in differnet machine and Client is in different machine.
Have installed MQWF RTC and MQ Series client and i am able to connect to MQ WF via MQ WF RTC but not through java code:
Error
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\IBM\WebSphere MQ Workflow\BIN\fmcojloc.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at com.ibm.workflow.loc.jni.DomainControllerImpl.<clinit>(DomainControllerImpl.java:102)
at com.ibm.workflow.api.Agent$LocLocator.locate(Agent.java:91)
at com.ibm.workflow.api.Agent.setName(Agent.java:255)
at MQWConnector.Connect(MQWConnector.java:32)
at OrderFulfillmentDS.main(OrderFulfillmentDS.java:20)
Java code
Agent agent = new Agent();
agent.setLocator(Agent.LOC_LOCATOR);
agent.setName("MQWFAGENT");
agent.setConfigurationID("FMC");
ExecutionAgent pea = agent.getExecutionAgent();
service = agent.locate("", "");
service.logon2(userid, passwd, SessionMode.DEFAULT, AbsenceIndicator.LEAVE)
In addition, the Java API that you are using does not use version 3.6 classes.
It uses the 'old' JNI based API which was replaced by a 'pure Java' API in 3.6
Check your CLASSPATH for the existence of an outdated fmcjapi.jar.
Check the Programming Guide how to setup a Java web client in WebSphere.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum