Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

c# library in java

Posted on 2015-01-20
6
Medium Priority
?
43 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

636 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