Solved

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

Posted on 2013-02-03
6
369 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 74

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
IT, Stop Being Called Into Every Meeting

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 83

Accepted Solution

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

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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 …
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

747 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