Solved

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

Posted on 2013-02-03
6
371 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

932 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

10 Experts available now in Live!

Get 1:1 Help Now