?
Solved

c# library in java

Posted on 2015-01-20
6
Medium Priority
?
42 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Michael Fowler
ID: 40560831
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
ID: 40560892
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:Michael Fowler
ID: 40560912
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
LVL 13

Expert Comment

by:George K.
ID: 40629380
Hi,

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

Accepted Solution

by:
leorocha earned 0 total points
ID: 40644314
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
ID: 40877317
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

762 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