Solved

c# library in java

Posted on 2015-01-20
6
31 Views
Last Modified: 2015-07-11
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
Comment
Question by:leorocha
  • 3
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Michael74
Comment Utility
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
 

Author Comment

by:leorocha
Comment Utility
I've already seen that article. I can't compile the cs as a module. Only have a DLL
0
 
LVL 23

Expert Comment

by:Michael74
Comment Utility
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 13

Expert Comment

by:George K.
Comment Utility
Hi,

A hard coded way;
System.load("C:/mypath/mysuper.dll");
0
 

Accepted Solution

by:
leorocha earned 0 total points
Comment Utility
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
 

Author Closing Comment

by:leorocha
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now