• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 46
  • Last Modified:

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.
0
leorocha
Asked:
leorocha
  • 3
  • 2
1 Solution
 
Michael FowlerSolutions ConsultantCommented:
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
0
 
leorochaAuthor Commented:
I've already seen that article. I can't compile the cs as a module. Only have a DLL
0
 
Michael FowlerSolutions ConsultantCommented:
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
George K.Commented:
Hi,

A hard coded way;
System.load("C:/mypath/mysuper.dll");
0
 
leorochaAuthor Commented:
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.

I need to close this question.
0
 
leorochaAuthor Commented:
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.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now