LEONEL ROCHA
asked on
c# library in java
I've a third party C# DLL (.NET Framework 2.0) and I need to use some functions in java. Is it possible? How?
Example function: testLicense() that returns boolean result.
Example function: testLicense() that returns boolean result.
ASKER
I've already seen that article. I can't compile the cs as a module. Only have a DLL
Have you looked into jni4net
http://sourceforge.net/projects/jni4net/
You may find this article helpful
http://www.codeproject.com/Articles/13093/C-method-calls-within-a-Java-program
http://sourceforge.net/projects/jni4net/
You may find this article helpful
http://www.codeproject.com/Articles/13093/C-method-calls-within-a-Java-program
Hi,
A hard coded way;
System.load("C:/mypath/mys uper.dll") ;
A hard coded way;
System.load("C:/mypath/mys
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My provider here create a Console Application in CSharp running methods included in the third party C# DLL. Then call the Console Application (exe) from Java, that receive the method name as a parameter in addition to those required by the method in the third party C# DLL.
http://www.codeproject.com/Articles/378826/How-to-wrap-a-Csharp-library-for-use-in-Java