Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to follow

http://www.codeproject.com/Articles/12920/Use-JMS-Messaging-in-your-C-Applications

When i had all jar files and complie



SQL
When i compile System.messaging by adding all jar files below error observed

Error      1      The type 'javax.naming.Context' exists in both 'c:\Program Files\Mainsoft for Java EE 2.5\java_refs\sun_jre6\rt.dll' and 'c:\Users\User\Documents\Visual Studio 2008\Projects\System.Messaging\System.Messaging\Refs\jndi-1.2.1.jar'      C:\Users\User\Documents\Visual Studio 2008\Projects\System.Messaging\System.Messaging\Class1.cs      148      37      System.Messaging

If i remove RT.dll from the reference and compile, iam getting error with the line "class MessageBody : java.io.Serializable"

If i remove jndi-1.2.1.jar, complies with success, but console program for sending message will throw errors during building
Posted

1 solution

Please post your question in the forum below the article. In that way the author will receive a notification.
 
Share this answer
 
Comments
Ebenezer Pramod KUMAR 23-Apr-13 5:11am    
I am trying to follow

http://www.codeproject.com/Articles/12920/Use-JMS-Messaging-in-your-C-Applications

When i had all jar files and complie


When i compile System.messaging by adding all jar files below error observed

Error 1 The type 'javax.naming.Context' exists in both 'c:\Program Files\Mainsoft for Java EE 2.5\java_refs\sun_jre6\rt.dll' and 'c:\Users\User\Documents\Visual Studio 2008\Projects\System.Messaging\System.Messaging\Refs\jndi-1.2.1.jar' C:\Users\User\Documents\Visual Studio 2008\Projects\System.Messaging\System.Messaging\Class1.cs 148 37 System.Messaging

If i remove RT.dll from the reference and compile, iam getting error with the line "class MessageBody : java.io.Serializable"

If i remove jndi-1.2.1.jar, complies with success, but console program for sending message will throw errors during building


can u please help me sir
Richard MacCutchan 23-Apr-13 5:14am    
Yes, I understand what you are trying to do, and I already explained that you need to post your query in the forum at the end of the article, and get in discussion with the author.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900