Link to home
Start Free TrialLog in
Avatar of LEONEL ROCHA
LEONEL ROCHAFlag for Uruguay

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.
Avatar of Michael Fowler
Michael Fowler
Flag of Australia image

Here is a good article to runs you through this process
http://www.codeproject.com/Articles/378826/How-to-wrap-a-Csharp-library-for-use-in-Java
Avatar of LEONEL ROCHA

ASKER

I've already seen that article. I can't compile the cs as a module. Only have a DLL
Hi,

A hard coded way;
System.load("C:/mypath/mysuper.dll");
ASKER CERTIFIED SOLUTION
Avatar of LEONEL ROCHA
LEONEL ROCHA
Flag of Uruguay image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.