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
Solved

How to call vb.net or c# functions in java. Please do not use C++.

Posted on 2013-02-03
6
378 Views
Last Modified: 2013-02-20
How to call vb.net or c# functions in java. Is it possible without using C++ .
I have used this:
http://www.codeproject.com/Articles/378826/How-to-wrap-a-Csharp-library-for-use-in-Java
The process seems to be:
create a VB dll, create a C wrapper dll  for that VB dll and use JNI

How to call vb.net or c# functions in java. Please do not use C++.
0
Comment
Question by:gawacha1
6 Comments
 
LVL 20

Expert Comment

by:informaniac
ID: 38848717
You could take a look @ WCF.
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38849535
Have you looked at IKVM?
0
 

Author Comment

by:gawacha1
ID: 38854160
Dear kaufmed / informaniac

IKVM is for running java code on ,net runtime. Please note that our Client is Java and Server is C#.

please give sample code

gawacha1
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38854650
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 38859319
Please clarify your question then. You original question sounds like you are wanting to use existing Java code without having to translate it into .NET code. Now you mention you have a client/server setup. Please describe your environment in more detail, and what it is you are attempting to accomplish.
0
 

Author Comment

by:gawacha1
ID: 38872457
Dear Kaufmed / CodeCruiser

i have a code in vb.net 2005. For delivery to client i need to give DLL and also Java library of the same.
the client / server analogy i hv used only as illustration to show the direction of conversion.

i m looking at JNBridge etc and come back

Regards
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Optimize the query 5 43
Very Large data in MYSQL 7 73
junit as external jar or library 7 24
Toolbar to format all windows forms controls at design time needed 5 15
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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:

829 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