调用C#DLL从Java应用程序

人气:1,059 发布:2022-09-10 标签: java .net c# dll

问题描述

我在C#中,其在要求做一些数据库操作创建一个dll。我必须从Java应用程序传递一些参数,在DLL中的方法。如何做到这一点的想法。

I have a dll created in c# which does some database operation upon calling. I have to pass few parameters from a Java application to a method in the dll. Any Idea on how to do this.

有关由Java应用程序中调用在C#中的方法更好的想法?

Any better ideas for calling a method in c# by a java application?

感谢

编辑:我的Java应用程序与AVAYA平台标准的对话设计的应用程序,我已经开发了一个C#应用程序,它的工作原理上的.NET SDK只。所以,我需要将数据从Java应用程序传递给.NET应用程序

Edit : My java application is a standard Dialogue Designer application from AVAYA Platform and I have developed a C# application which works on a SDK for .net only. So i need data to be passed from java application to .net application

推荐答案

我看着这一段时间回来,虽然我恩维尔远了与它的需求变化。但我读了使用JNI,Java本地接口也许能够帮助你你需要做什么。

I looked into this a while back although I enver got far with it as the requirements changed. But I did read that using JNI, Java Native Interface may be able to help you with what you are needing to do.

http://java.sun.com/developer/onlineTraining/编程/ JDCBook / jni.html

希望这有助于!

845