UnsatisfiedLinkError

Jun 9, 2008 at 4:08 PM
Hi, when running TestClient.java I'm getting an exception upon hitting ENTER to specify the location of the server as local (in other words, when opening a queue, i enter the name of the queue and then it prompts for the location and I hit enter and receive the following error)
The exception is:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no JNIMSMQ in java.library.path

at java.lang.ClassLoader.loadLibrary(Unknown Source)

at java.lang.Runtime.loadLibrary0(Unknown Source)

at java.lang.System.loadLibrary(Unknown Source)

at ionic.Msmq.Queue.<clinit>(

Queue.java:201)

 

at TestClient.Open(

TestClient.java:136)

 

at TestClient.Run(

TestClient.java:232)

 

at TestClient.main(

TestClient.java:22)



I'm sure this is a very simple error, but I'm fairly new to programming in general and so I'm not exactly sure how to fix it.  I'm assuming I need to download JNIMSMQ.dll to a certain location.  If so, where is that?
Any help would be greatly appreciated.
Thanks.

 

Jun 11, 2008 at 2:55 AM
Try passing this parameter when you run the program (java -Djava.library.path=c:\yourpathtothedll

You might also try downloading the zip file I posted in the patches area - and look at the modified bat files I included to see how to invoke the program. 
Jun 11, 2008 at 2:59 AM

The latest release of the Apache ActiveMQ 5.1 now includes a JMS-to-MSMQ bridge that may be worth looking at too.

https://issues.apache.org/activemq/browse/AMQ-438

http://activemq.apache.org/

Sep 14, 2011 at 6:50 AM

Hi!

Am facing the same issue...so did you came to know the solution coz am really stuck...!!

Sep 14, 2011 at 6:54 AM

where and how can i pass this??