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.
leorochaAsked:
Who is Participating?
 
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
 
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
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Michael FowlerSolutions ConsultantCommented:
0
 
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.