本文介绍了JMS使用c#获取complilation错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想跟随



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



当我有所有jar文件和complie







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

推荐答案


这篇关于JMS使用c#获取complilation错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 22:23